]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/bridge/br_private.h
net: Fix various endianness glitches
[net-next-2.6.git] / net / bridge / br_private.h
index 791d4ab0fd4d42852c42778f66962dee5a1c5c03..63181e4a2a672cbda6e2dd22c52668b3c9274bb2 100644 (file)
@@ -130,19 +130,20 @@ struct net_bridge_port
 #endif
 };
 
+struct br_cpu_netstats {
+       unsigned long   rx_packets;
+       unsigned long   rx_bytes;
+       unsigned long   tx_packets;
+       unsigned long   tx_bytes;
+};
+
 struct net_bridge
 {
        spinlock_t                      lock;
        struct list_head                port_list;
        struct net_device               *dev;
 
-       struct br_cpu_netstats __percpu {
-               unsigned long   rx_packets;
-               unsigned long   rx_bytes;
-               unsigned long   tx_packets;
-               unsigned long   tx_bytes;
-       } *stats;
-
+       struct br_cpu_netstats __percpu *stats;
        spinlock_t                      hash_lock;
        struct hlist_head               hash[BR_HASH_SIZE];
        unsigned long                   feature_mask;