aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.h
diff options
context:
space:
mode:
authorBenjamin Li <benli@broadcom.com>2008-05-17 01:18:57 -0400
committerDavid S. Miller <davem@davemloft.net>2008-05-17 01:18:57 -0400
commitd89cb6af41559a601e9cfe081d34de07945b0d8b (patch)
treecf6aa02b5b014eb8d6bda336ec001472792fdca8 /drivers/net/bnx2.h
parent6ff2da49c8a68320c2564006c94a492db58de5cd (diff)
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.h2
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 {
309#endif 309#endif
310}; 310};
311 311
312#define BNX2_RX_OFFSET (sizeof(struct l2_fhdr) + 2)
312 313
313/* 314/*
314 * l2_context definition 315 * l2_context definition
@@ -6627,7 +6628,6 @@ struct bnx2 {
6627 struct vlan_group *vlgrp; 6628 struct vlan_group *vlgrp;
6628#endif 6629#endif
6629 6630
6630 u32 rx_offset;
6631 u32 rx_buf_use_size; /* useable size */ 6631 u32 rx_buf_use_size; /* useable size */
6632 u32 rx_buf_size; /* with alignment */ 6632 u32 rx_buf_size; /* with alignment */
6633 u32 rx_copy_thresh; 6633 u32 rx_copy_thresh;