aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorJiri Pirko <jiri@resnulli.us>2013-05-25 04:12:10 +0000
committerDavid S. Miller <davem@davemloft.net>2013-05-25 23:12:19 -0700
commit42e52bf9e3ae80fd44b21ddfcd64c54e6db2ff76 (patch)
tree4d395ed55ed5e36d0b54ea49329e797c06783f9f /net/core
parent8513fbd880093f00a47e85a552f14ca2de8d84d6 (diff)
downloadkernel_goldelico_gta04-42e52bf9e3ae80fd44b21ddfcd64c54e6db2ff76.zip
kernel_goldelico_gta04-42e52bf9e3ae80fd44b21ddfcd64c54e6db2ff76.tar.gz
kernel_goldelico_gta04-42e52bf9e3ae80fd44b21ddfcd64c54e6db2ff76.tar.bz2
net: add netnotifier event for upper device change
Now when upper device is changed, event is not propagated via RT Netlink to userspace. Userspace might never now about the change. Fix this by adding upper-device-change notifier event. Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 7229bc3..50c02de 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -4411,7 +4411,7 @@ static int __netdev_upper_dev_link(struct net_device *dev,
else
list_add_tail_rcu(&upper->list, &dev->upper_dev_list);
dev_hold(upper_dev);
-
+ call_netdevice_notifiers(NETDEV_CHANGEUPPER, dev);
return 0;
}
@@ -4471,6 +4471,7 @@ void netdev_upper_dev_unlink(struct net_device *dev,
list_del_rcu(&upper->list);
dev_put(upper_dev);
kfree_rcu(upper, rcu);
+ call_netdevice_notifiers(NETDEV_CHANGEUPPER, dev);
}
EXPORT_SYMBOL(netdev_upper_dev_unlink);