diff options
author | Michael Chan <mchan@broadcom.com> | 2010-02-15 14:42:07 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-16 18:19:02 -0500 |
commit | efde73a35c2fc88db26a1583b19e0ab0fdfcd4f8 (patch) | |
tree | 237376cfabdad3217e0be47fac88448fc5167c01 /drivers/net/bnx2.c | |
parent | 496c185c9495629ef1c65387cb2594578393cfe0 (diff) |
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 <mchan@broadcom.com>
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r-- | drivers/net/bnx2.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
4940 | BNX2_HC_CONFIG_COLLECT_STATS; | 4940 | BNX2_HC_CONFIG_COLLECT_STATS; |
4941 | } | 4941 | } |
4942 | 4942 | ||
4943 | if (bp->irq_nvecs > 1) { | 4943 | if (bp->flags & BNX2_FLAG_USING_MSIX) { |
4944 | REG_WR(bp, BNX2_HC_MSIX_BIT_VECTOR, | 4944 | REG_WR(bp, BNX2_HC_MSIX_BIT_VECTOR, |
4945 | BNX2_HC_MSIX_BIT_VECTOR_VAL); | 4945 | BNX2_HC_MSIX_BIT_VECTOR_VAL); |
4946 | 4946 | ||