summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_stp.c
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2011-07-22 09:47:09 +0200
committerDavid S. Miller <davem@davemloft.net>2011-07-23 02:01:12 +0200
commit4ecb961c8b474ebef5aff55f715c7875e69dd57b (patch)
tree32aff0d005ed0f5c810fc41a711e64ee6afae937 /net/bridge/br_stp.c
parentbridge: notifier called with the wrong device (diff)
downloadlinux-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.c')
-rw-r--r--net/bridge/br_stp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/bridge/br_stp.c b/net/bridge/br_stp.c
index fcff62251547..4d651af57a90 100644
--- a/net/bridge/br_stp.c
+++ b/net/bridge/br_stp.c
@@ -363,6 +363,8 @@ static void br_make_blocking(struct net_bridge_port *p)
p->state = BR_STATE_BLOCKING;
br_log_state(p);
+ br_ifinfo_notify(RTM_NEWLINK, p);
+
del_timer(&p->forward_delay_timer);
}
}
@@ -386,8 +388,8 @@ static void br_make_forwarding(struct net_bridge_port *p)
p->state = BR_STATE_LEARNING;
br_multicast_enable_port(p);
-
br_log_state(p);
+ br_ifinfo_notify(RTM_NEWLINK, p);
if (br->forward_delay != 0)
mod_timer(&p->forward_delay_timer, jiffies + br->forward_delay);