bnx2: Check BNX2_FLAG_USING_MSIX flag when setting up MSIX.
authorMichael Chan <mchan@broadcom.com>
Mon, 15 Feb 2010 19:42:07 +0000 (19:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2010 23:19:02 +0000 (15:19 -0800)
commitefde73a35c2fc88db26a1583b19e0ab0fdfcd4f8
tree237376cfabdad3217e0be47fac88448fc5167c01
parent496c185c9495629ef1c65387cb2594578393cfe0
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>
drivers/net/bnx2.c