]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
bnx2: Always enable MSI-X on 5709.
authorMichael Chan <mchan@broadcom.com>
Sat, 3 Jul 2010 20:42:15 +0000 (20:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Jul 2010 18:43:59 +0000 (11:43 -0700)
Minor change to use MSI-X even if there is only one CPU.  This allows
the CNIC driver to always have a dedicated MSI-X vector to handle
iSCSI events, instead of sharing the MSI vector.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c

index a5dd81face3787b3aeb459ec247d8eaf68281a39..0614ca0b15fea6be4354e53c9eb3cc74fe260f0e 100644 (file)
@@ -6185,7 +6185,7 @@ bnx2_setup_int_mode(struct bnx2 *bp, int dis_msi)
        bp->irq_nvecs = 1;
        bp->irq_tbl[0].vector = bp->pdev->irq;
 
-       if ((bp->flags & BNX2_FLAG_MSIX_CAP) && !dis_msi && cpus > 1)
+       if ((bp->flags & BNX2_FLAG_MSIX_CAP) && !dis_msi)
                bnx2_enable_msix(bp, msix_vecs);
 
        if ((bp->flags & BNX2_FLAG_MSI_CAP) && !dis_msi &&