diff options
author | stephen hemminger <shemminger@vyatta.com> | 2011-07-22 09:47:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-23 02:01:12 +0200 |
commit | 4ecb961c8b474ebef5aff55f715c7875e69dd57b (patch) | |
tree | 32aff0d005ed0f5c810fc41a711e64ee6afae937 /net/bridge/br_stp_if.c | |
parent | bridge: notifier called with the wrong device (diff) | |
download | linux-4ecb961c8b474ebef5aff55f715c7875e69dd57b.tar.xz linux-4ecb961c8b474ebef5aff55f715c7875e69dd57b.zip |
bridge: add notification over netlink when STP changes state
When STP changes state of interface need to send a new link
message to reflect that change.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_stp_if.c')
-rw-r--r-- | net/bridge/br_stp_if.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bridge/br_stp_if.c b/net/bridge/br_stp_if.c index 6f615b8192f4..10eda3cd1d71 100644 --- a/net/bridge/br_stp_if.c +++ b/net/bridge/br_stp_if.c @@ -88,6 +88,7 @@ void br_stp_enable_port(struct net_bridge_port *p) br_init_port(p); br_port_state_selection(p->br); br_log_state(p); + br_ifinfo_notify(RTM_NEWLINK, p); } /* called under bridge lock */ @@ -104,6 +105,8 @@ void br_stp_disable_port(struct net_bridge_port *p) p->topology_change_ack = 0; p->config_pending = 0; + br_ifinfo_notify(RTM_NEWLINK, p); + del_timer(&p->message_age_timer); del_timer(&p->forward_delay_timer); del_timer(&p->hold_timer); |