diff options
author | stephen hemminger <shemminger@vyatta.com> | 2011-07-22 03:47:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-22 20:01:12 -0400 |
commit | 4ecb961c8b474ebef5aff55f715c7875e69dd57b (patch) | |
tree | 32aff0d005ed0f5c810fc41a711e64ee6afae937 /net/bridge/br_stp.c | |
parent | 56139fc5bd6e740706993ab3ad0d0aeff69a8479 (diff) |
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.c | 4 |
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) | |||
363 | 363 | ||
364 | p->state = BR_STATE_BLOCKING; | 364 | p->state = BR_STATE_BLOCKING; |
365 | br_log_state(p); | 365 | br_log_state(p); |
366 | br_ifinfo_notify(RTM_NEWLINK, p); | ||
367 | |||
366 | del_timer(&p->forward_delay_timer); | 368 | del_timer(&p->forward_delay_timer); |
367 | } | 369 | } |
368 | } | 370 | } |
@@ -386,8 +388,8 @@ static void br_make_forwarding(struct net_bridge_port *p) | |||
386 | p->state = BR_STATE_LEARNING; | 388 | p->state = BR_STATE_LEARNING; |
387 | 389 | ||
388 | br_multicast_enable_port(p); | 390 | br_multicast_enable_port(p); |
389 | |||
390 | br_log_state(p); | 391 | br_log_state(p); |
392 | br_ifinfo_notify(RTM_NEWLINK, p); | ||
391 | 393 | ||
392 | if (br->forward_delay != 0) | 394 | if (br->forward_delay != 0) |
393 | mod_timer(&p->forward_delay_timer, jiffies + br->forward_delay); | 395 | mod_timer(&p->forward_delay_timer, jiffies + br->forward_delay); |