aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorJiri Pirko <jiri@resnulli.us>2013-05-27 21:30:22 -0400
committerDavid S. Miller <davem@davemloft.net>2013-05-28 16:11:01 -0400
commitbe9efd3653284f2827fd82861e8e9db9a8f726e1 (patch)
tree601a02b498c24c40a2712feef0c0cfca544fc2c1 /net/core/dev.c
parent351638e7deeed2ec8ce451b53d33921b3da68f83 (diff)
net: pass changed flags along with NETDEV_CHANGE event
Use new netdevice notifier infrastructure to pass along changed flags. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Jiri Pirko <jiri@resnulli.us> v2->v3: shortened notifier_info struct name Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 54fce6006a83..6eb621cc3b81 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -4771,8 +4771,13 @@ void __dev_notify_flags(struct net_device *dev, unsigned int old_flags)
4771 } 4771 }
4772 4772
4773 if (dev->flags & IFF_UP && 4773 if (dev->flags & IFF_UP &&
4774 (changes & ~(IFF_UP | IFF_PROMISC | IFF_ALLMULTI | IFF_VOLATILE))) 4774 (changes & ~(IFF_UP | IFF_PROMISC | IFF_ALLMULTI | IFF_VOLATILE))) {
4775 call_netdevice_notifiers(NETDEV_CHANGE, dev); 4775 struct netdev_notifier_change_info change_info;
4776
4777 change_info.flags_changed = changes;
4778 call_netdevice_notifiers_info(NETDEV_CHANGE, dev,
4779 &change_info.info);
4780 }
4776} 4781}
4777 4782
4778/** 4783/**