Skip to contentSkip to conversation

bnx2x: Remove the init_dmae field from bp

PATCH In review Eilon Greenstein 1 participant 1 message Aug 12, 2009

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

PATCH 23/36 bnx2x: Remove the init_dmae field from bp

Moved the dmae_command from the heap to the stack. This will save 56
bytes per bnx2x structure. As a side benefit, we can also reduce the
time the dmae_mutex is held. This is because do we not need to hold this mutex when setting up the dmae command. The memory where is dmae command is stored is not a shared resource and doesn not need to be protected.

---
 drivers/net/bnx2x.h      |    1 -
 drivers/net/bnx2x_main.c |   94 +++++++++++++++++++++++-----------------------
 2 files changed, 47 insertions(+), 48 deletions(-)
drivers/net/bnx2x.h +0 -1
index 633acca..a231780 100644
@@ -973,7 +973,6 @@ struct bnx2x {
 	int			dmae_ready;
 	/* used to synchronize dmae accesses */
 	struct mutex		dmae_mutex;
-	struct dmae_command	init_dmae;
 
 	/* used to synchronize stats collecting */
 	int			stats_state;
drivers/net/bnx2x_main.c +47 -47

145 lines not on this page · raw message

Signature · 1 line
1.5.4.3