]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit560b92565e36965a824db3d21fe9f7dcf808fc52
tree97391e61e15ecc988786fe6b36a2db525c2694d7
parent164663db2878491538045144221f9a7eba0cbf4c
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