]> git.karo-electronics.de Git - linux-beck.git/commit
net: bridge: add helper to offload ageing time
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Sat, 10 Dec 2016 18:44:27 +0000 (13:44 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Dec 2016 02:27:23 +0000 (21:27 -0500)
commit82dd4332aa07843f7444c55bc17fee9bd76aa0f7
treeb84e1515b58c33c76e6ea452a955e28e43da6736
parentbfd8d977af2390e646d4a5df8e88c1d7a1ae63d9
net: bridge: add helper to offload ageing time

The SWITCHDEV_ATTR_ID_BRIDGE_AGEING_TIME switchdev attr is actually set
when initializing a bridge port, and when configuring the bridge ageing
time from ioctl/netlink/sysfs.

Add a __set_ageing_time helper to offload the ageing time to physical
switches, and add the SWITCHDEV_F_DEFER flag since it can be called
under bridge lock.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_private.h
net/bridge/br_stp.c
net/bridge/br_stp_if.c