diff options
Diffstat (limited to 'net/bridge/br_private.h')
-rw-r--r-- | net/bridge/br_private.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index 0f5394c4f2f1..f6bc979b1135 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h | |||
@@ -150,6 +150,11 @@ struct net_bridge_port | |||
150 | #endif | 150 | #endif |
151 | }; | 151 | }; |
152 | 152 | ||
153 | #define br_port_get_rcu(dev) \ | ||
154 | ((struct net_bridge_port *) rcu_dereference(dev->rx_handler_data)) | ||
155 | #define br_port_get(dev) ((struct net_bridge_port *) dev->rx_handler_data) | ||
156 | #define br_port_exists(dev) (dev->priv_flags & IFF_BRIDGE_PORT) | ||
157 | |||
153 | struct br_cpu_netstats { | 158 | struct br_cpu_netstats { |
154 | unsigned long rx_packets; | 159 | unsigned long rx_packets; |
155 | unsigned long rx_bytes; | 160 | unsigned long rx_bytes; |