diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2016-12-10 13:44:27 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-10 21:27:23 -0500 |
commit | 82dd4332aa07843f7444c55bc17fee9bd76aa0f7 (patch) | |
tree | b84e1515b58c33c76e6ea452a955e28e43da6736 /net/bridge/br_private.h | |
parent | bfd8d977af2390e646d4a5df8e88c1d7a1ae63d9 (diff) | |
download | lwn-82dd4332aa07843f7444c55bc17fee9bd76aa0f7.tar.gz lwn-82dd4332aa07843f7444c55bc17fee9bd76aa0f7.zip |
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>
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 26aec2366bc3..e2cd6d12a273 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h @@ -999,6 +999,7 @@ void __br_set_forward_delay(struct net_bridge *br, unsigned long t); int br_set_forward_delay(struct net_bridge *br, unsigned long x); int br_set_hello_time(struct net_bridge *br, unsigned long x); int br_set_max_age(struct net_bridge *br, unsigned long x); +int __set_ageing_time(struct net_device *dev, unsigned long t); int br_set_ageing_time(struct net_bridge *br, clock_t ageing_time); |