Skip to contentSkip to conversation

bnx2x: move msix table initialization to probe()

PATCH In review Dmitry Kravkov 1 participant 1 message Oct 6, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 15/19 bnx2x: move msix table initialization to probe()

Decide which interrupt mode to use (MSI-X, MSI, INTa) only once in probe() and initialize appropriate structures.

---
 drivers/net/bnx2x/bnx2x.h      |    3 +
 drivers/net/bnx2x/bnx2x_cmn.c  |  206 ++++++++++++++++++----------------------
 drivers/net/bnx2x/bnx2x_cmn.h  |   75 ++++++++++++++-
 drivers/net/bnx2x/bnx2x_main.c |   78 ++++++++++++----
 4 files changed, 228 insertions(+), 134 deletions(-)
drivers/net/bnx2x/bnx2x.h +3 -0
index 9b78a04..d80809f 100644
@@ -308,6 +308,7 @@ union host_hc_status_block {
 
 struct bnx2x_fastpath {
 
+#define BNX2X_NAPI_WEIGHT       128
 	struct napi_struct	napi;
 	union host_hc_status_block status_blk;
 	/* chip independed shortcuts into sb structure */
@@ -920,8 +921,10 @@ struct bnx2x {
 #define USING_DAC_FLAG			0x10
 #define USING_MSIX_FLAG			0x20
 #define USING_MSI_FLAG			0x40
+
 #define TPA_ENABLE_FLAG			0x80
 #define NO_MCP_FLAG			0x100
+#define DISABLE_MSI_FLAG		0x200
 #define BP_NOMCP(bp)			(bp->flags & NO_MCP_FLAG)
 #define HW_VLAN_TX_FLAG			0x400
 #define HW_VLAN_RX_FLAG			0x800
drivers/net/bnx2x/bnx2x_cmn.c +93 -113

351 lines not on this page · raw message

drivers/net/bnx2x/bnx2x_cmn.h +72 -3

112 lines not on this page · raw message

drivers/net/bnx2x/bnx2x_main.c +60 -18

130 lines not on this page · raw message

Signature · 1 line
1.7.1