bnx2x: Remove the init_dmae field from bp
Subsystems (2)
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.
Signed-off-by Benjamin Li <[email protected]>
Signed-off-by Eilon Greenstein <[email 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
@@ -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