diff options
author | Benjamin Li <benli@broadcom.com> | 2008-05-16 22:18:57 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-16 22:18:57 -0700 |
commit | d89cb6af41559a601e9cfe081d34de07945b0d8b (patch) | |
tree | cf6aa02b5b014eb8d6bda336ec001472792fdca8 /drivers/net/bnx2.h | |
parent | 6ff2da49c8a68320c2564006c94a492db58de5cd (diff) | |
download | linux-d89cb6af41559a601e9cfe081d34de07945b0d8b.tar.gz linux-d89cb6af41559a601e9cfe081d34de07945b0d8b.tar.bz2 linux-d89cb6af41559a601e9cfe081d34de07945b0d8b.zip |
bnx2: Remove the rx_offset field from the bnx2 structure.
The rx_offset field is set to a constant value and initialized
only once. By replacing all references to the rx_offset field,
we can eliminate rx_offset from the bnx2 structure. This will
save 4 bytes for every bnx2 instance.
[Added parentheses to the definition of BNX2_RX_OFFSET, as noted
by Ben Hutchings.]
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.h')
-rw-r--r-- | drivers/net/bnx2.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h index 1eaf5bb3d9c2..601bafffe8ba 100644 --- a/drivers/net/bnx2.h +++ b/drivers/net/bnx2.h @@ -309,6 +309,7 @@ struct l2_fhdr { #endif }; +#define BNX2_RX_OFFSET (sizeof(struct l2_fhdr) + 2) /* * l2_context definition @@ -6627,7 +6628,6 @@ struct bnx2 { struct vlan_group *vlgrp; #endif - u32 rx_offset; u32 rx_buf_use_size; /* useable size */ u32 rx_buf_size; /* with alignment */ u32 rx_copy_thresh; |