diff options
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; |