diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2016-12-10 13:44:28 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-10 21:27:23 -0500 |
commit | 8384b5f5b293389a42cc65bfca2d767d15809aa1 (patch) | |
tree | ccb3b54b6b7865239a750e1573b83ef76774728a /net/bridge/br_stp_timer.c | |
parent | 82dd4332aa07843f7444c55bc17fee9bd76aa0f7 (diff) | |
download | linux-8384b5f5b293389a42cc65bfca2d767d15809aa1.tar.bz2 |
net: bridge: add helper to set topology change
Add a __br_set_topology_change helper to set the topology change value.
This can be later extended to add actions when the topology change flag
is set or cleared.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_stp_timer.c')
-rw-r--r-- | net/bridge/br_stp_timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_stp_timer.c b/net/bridge/br_stp_timer.c index da058b85aa22..7ddb38e0a06e 100644 --- a/net/bridge/br_stp_timer.c +++ b/net/bridge/br_stp_timer.c @@ -125,7 +125,7 @@ static void br_topology_change_timer_expired(unsigned long arg) br_debug(br, "topo change timer expired\n"); spin_lock(&br->lock); br->topology_change_detected = 0; - br->topology_change = 0; + __br_set_topology_change(br, 0); spin_unlock(&br->lock); } |