Skip to content

Commit

Permalink
bnx2: Always enable MSI-X on 5709.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Chan authored and David S. Miller committed Jul 4, 2010
1 parent f45f432 commit 3d5f3a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/bnx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 3d5f3a7

Please sign in to comment.