diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2010-02-27 14:41:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-28 03:49:46 -0500 |
commit | 561f1103a2b70de7e06e1e7fd072a5b142a4278c (patch) | |
tree | 219508a45a357c6dbd5e2fdf4924a474a6bab356 /net/bridge/br_private.h | |
parent | 0909e11758bd28848aeb6646e021ec1e031a3f0f (diff) |
bridge: Add multicast_snooping sysfs toggle
This patch allows the user to disable IGMP snooping completely
through a sysfs toggle. It also allows the user to reenable
snooping when it has been automatically disabled due to hash
collisions. If the collisions have not been resolved however
the system will refuse to reenable snooping.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index dcdfafbe4b17..bf162fa6b23b 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h | |||
@@ -300,6 +300,7 @@ extern void br_multicast_forward(struct net_bridge_mdb_entry *mdst, | |||
300 | extern int br_multicast_set_router(struct net_bridge *br, unsigned long val); | 300 | extern int br_multicast_set_router(struct net_bridge *br, unsigned long val); |
301 | extern int br_multicast_set_port_router(struct net_bridge_port *p, | 301 | extern int br_multicast_set_port_router(struct net_bridge_port *p, |
302 | unsigned long val); | 302 | unsigned long val); |
303 | extern int br_multicast_toggle(struct net_bridge *br, unsigned long val); | ||
303 | #else | 304 | #else |
304 | static inline int br_multicast_rcv(struct net_bridge *br, | 305 | static inline int br_multicast_rcv(struct net_bridge *br, |
305 | struct net_bridge_port *port, | 306 | struct net_bridge_port *port, |