diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-04-20 22:06:52 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-20 22:06:52 -0400 |
commit | 0eae88f31ca2b88911ce843452054139e028771f (patch) | |
tree | 90f50197d8e1e50e3621e9c525bd4ca2634fe368 /net/bridge/br_private.h | |
parent | cb903bf4ee2d6e53210e2174d363e10698112042 (diff) |
net: Fix various endianness glitches
Sparse can help us find endianness bugs, but we need to make some
cleanups to be able to more easily spot real bugs.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_private.h')
-rw-r--r-- | net/bridge/br_private.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index 791d4ab0fd4d..63181e4a2a67 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h | |||
@@ -130,19 +130,20 @@ struct net_bridge_port | |||
130 | #endif | 130 | #endif |
131 | }; | 131 | }; |
132 | 132 | ||
133 | struct br_cpu_netstats { | ||
134 | unsigned long rx_packets; | ||
135 | unsigned long rx_bytes; | ||
136 | unsigned long tx_packets; | ||
137 | unsigned long tx_bytes; | ||
138 | }; | ||
139 | |||
133 | struct net_bridge | 140 | struct net_bridge |
134 | { | 141 | { |
135 | spinlock_t lock; | 142 | spinlock_t lock; |
136 | struct list_head port_list; | 143 | struct list_head port_list; |
137 | struct net_device *dev; | 144 | struct net_device *dev; |
138 | 145 | ||
139 | struct br_cpu_netstats __percpu { | 146 | struct br_cpu_netstats __percpu *stats; |
140 | unsigned long rx_packets; | ||
141 | unsigned long rx_bytes; | ||
142 | unsigned long tx_packets; | ||
143 | unsigned long tx_bytes; | ||
144 | } *stats; | ||
145 | |||
146 | spinlock_t hash_lock; | 147 | spinlock_t hash_lock; |
147 | struct hlist_head hash[BR_HASH_SIZE]; | 148 | struct hlist_head hash[BR_HASH_SIZE]; |
148 | unsigned long feature_mask; | 149 | unsigned long feature_mask; |