diff options
Diffstat (limited to 'include/linux/if_bridge.h')
-rw-r--r-- | include/linux/if_bridge.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/if_bridge.h b/include/linux/if_bridge.h index 808dcb8cc04f..fa2eca625129 100644 --- a/include/linux/if_bridge.h +++ b/include/linux/if_bridge.h | |||
@@ -37,6 +37,24 @@ extern void brioctl_set(int (*ioctl_hook)(struct net *, unsigned int, void __use | |||
37 | typedef int br_should_route_hook_t(struct sk_buff *skb); | 37 | typedef int br_should_route_hook_t(struct sk_buff *skb); |
38 | extern br_should_route_hook_t __rcu *br_should_route_hook; | 38 | extern br_should_route_hook_t __rcu *br_should_route_hook; |
39 | 39 | ||
40 | #if IS_ENABLED(CONFIG_BRIDGE) | ||
41 | int br_fdb_external_learn_add(struct net_device *dev, | ||
42 | const unsigned char *addr, u16 vid); | ||
43 | int br_fdb_external_learn_del(struct net_device *dev, | ||
44 | const unsigned char *addr, u16 vid); | ||
45 | #else | ||
46 | static inline int br_fdb_external_learn_add(struct net_device *dev, | ||
47 | const unsigned char *addr, u16 vid) | ||
48 | { | ||
49 | return 0; | ||
50 | } | ||
51 | static inline int br_fdb_external_learn_del(struct net_device *dev, | ||
52 | const unsigned char *addr, u16 vid) | ||
53 | { | ||
54 | return 0; | ||
55 | } | ||
56 | #endif | ||
57 | |||
40 | #if IS_ENABLED(CONFIG_BRIDGE) && IS_ENABLED(CONFIG_BRIDGE_IGMP_SNOOPING) | 58 | #if IS_ENABLED(CONFIG_BRIDGE) && IS_ENABLED(CONFIG_BRIDGE_IGMP_SNOOPING) |
41 | int br_multicast_list_adjacent(struct net_device *dev, | 59 | int br_multicast_list_adjacent(struct net_device *dev, |
42 | struct list_head *br_ip_list); | 60 | struct list_head *br_ip_list); |