]> Pileus Git - ~andy/linux/commit
bnx2x: Remove the init_dmae field from bp
authorEilon Greenstein <eilong@broadcom.com>
Wed, 12 Aug 2009 08:23:44 +0000 (08:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Aug 2009 06:02:53 +0000 (23:02 -0700)
commit5ff7b6d4c129a430e355b2f88162a36d9e058f88
tree6d7597ea63c1e0d1137b3102fd4d2be5f995cdfb
parent0d28e49a2616b927bca5fde0f16dfdfd2a501107
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 <benli@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x.h
drivers/net/bnx2x_main.c