]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2: Call pci_enable_msix() with actual number of vectors.
authorMichael Chan <mchan@broadcom.com>
Mon, 19 Jul 2010 14:15:03 +0000 (14:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jul 2010 03:30:06 +0000 (20:30 -0700)
commit93da2d91b45df0417bea9ab23e29c0e34189cd1b
treedba8eff16c8a78aa38c5408250fbf001576d323c
parent87aae1add6b0cb5235c6b3204c5832f033c52354
bnx2: Call pci_enable_msix() with actual number of vectors.

Based on original patch by Breno Leitão <leitao@linux.vnet.ibm.com>.

Allocate the actual number of vectors and make use of fewer vectors
if pci_enable_msix() returns > 0.  We must allocate one additional
vector for the cnic driver.

Cc: Breno Leitão <leitao@linux.vnet.ibm.com>
Reviewed-by: Benjamin Li <benli@broadcom.com>
Reviewed-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c
drivers/net/bnx2.h