bridge: allow setting hash_max + multicast_router if interface is down
authorLinus Lüssing <linus.luessing@c0d3.blue>
Sat, 23 May 2015 01:12:34 +0000 (03:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 May 2015 21:28:01 +0000 (17:28 -0400)
commit6ae4ae8e512bd229f806c22f8a2cd751e4f987c2
tree97391e61e15ecc988786fe6b36a2db525c2694d7
parent485fca664d76c47fb2a17dcd2ce705a0f137cc3b
bridge: allow setting hash_max + multicast_router if interface is down

Network managers like netifd (used in OpenWRT for instance) try to
configure interface options after creation but before setting the
interface up.

Unfortunately the sysfs / bridge currently only allows to configure the
hash_max and multicast_router options when the bridge interface is up.
But since br_multicast_init() doesn't start any timers and only sets
default values and initializes timers it should be save to reconfigure
the default values after that, before things actually get active after
the bridge is set up.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_multicast.c