summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_netlink.c
diff options
context:
space:
mode:
authorstephen hemminger2011-07-22 09:47:09 +0200
committerDavid S. Miller2011-07-23 02:01:12 +0200
commit4ecb961c8b474ebef5aff55f715c7875e69dd57b (patch)
tree32aff0d005ed0f5c810fc41a711e64ee6afae937 /net/bridge/br_netlink.c
parentbridge: notifier called with the wrong device (diff)
downloadkernel-qcow2-linux-4ecb961c8b474ebef5aff55f715c7875e69dd57b.tar.gz
kernel-qcow2-linux-4ecb961c8b474ebef5aff55f715c7875e69dd57b.tar.xz
kernel-qcow2-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_netlink.c')
-rw-r--r--net/bridge/br_netlink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c
index 6814083a92f4..5b1ed1ba9aa7 100644
--- a/net/bridge/br_netlink.c
+++ b/net/bridge/br_netlink.c
@@ -188,6 +188,8 @@ static int br_rtm_setlink(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
p->state = new_state;
br_log_state(p);
+ br_ifinfo_notify(RTM_NEWLINK, p);
+
return 0;
}