From efde73a35c2fc88db26a1583b19e0ab0fdfcd4f8 Mon Sep 17 00:00:00 2001 From: Michael Chan Date: Mon, 15 Feb 2010 19:42:07 +0000 Subject: [PATCH] bnx2: Check BNX2_FLAG_USING_MSIX flag when setting up MSIX. Checking the flag is more correct than checking bp->irq_nvecs. By accident it is not a problem because we always have more than 1 vectors when using MSIX mode. Signed-off-by: Michael Chan Signed-off-by: Benjamin Li Signed-off-by: David S. Miller --- drivers/net/bnx2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index c7f5515ddaa4..48bc57803856 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c @@ -4940,7 +4940,7 @@ bnx2_init_chip(struct bnx2 *bp) BNX2_HC_CONFIG_COLLECT_STATS; } - if (bp->irq_nvecs > 1) { + if (bp->flags & BNX2_FLAG_USING_MSIX) { REG_WR(bp, BNX2_HC_MSIX_BIT_VECTOR, BNX2_HC_MSIX_BIT_VECTOR_VAL); -- 2.30.2