]> git.baikalelectronics.ru Git - kernel.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)
commita81e31448f3534afe93e3c609a9bc3d13614f725
treeb84e1515b58c33c76e6ea452a955e28e43da6736
parent5716c63bf0fa2882cbe35a52c3c60530f306ad3e
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