lkml.org 
[lkml]   [2022]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch 33/39] PCI/MSI: Sanitize MSI-X checks
    On Fri, Nov 11, 2022 at 02:55:07PM +0100, Thomas Gleixner wrote:
    > There is no point in doing the same sanity checks over and over in a loop
    > during MSI-X enablement. Put them in front of the loop and return early
    > when they fail.
    >
    > Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    > ---
    > drivers/pci/msi/msi.c | 67 +++++++++++++++++++++++++-------------------------
    > 1 file changed, 34 insertions(+), 33 deletions(-)

    > + /* PCI_IRQ_VIRTUAL is a horrible hack! */

    New comment too :)

    Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>

    Jason

    \
     
     \ /
      Last update: 2022-11-16 18:58    [W:4.200 / U:0.620 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site