aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
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 /include/linux/netdevice.h
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 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 13a34848b5e1..850271809a9e 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1604,6 +1604,11 @@ struct netdev_notifier_info {
1604 struct net_device *dev; 1604 struct net_device *dev;
1605}; 1605};
1606 1606
1607struct netdev_notifier_change_info {
1608 struct netdev_notifier_info info; /* must be first */
1609 unsigned int flags_changed;
1610};
1611
1607static inline struct net_device * 1612static inline struct net_device *
1608netdev_notifier_info_to_dev(const struct netdev_notifier_info *info) 1613netdev_notifier_info_to_dev(const struct netdev_notifier_info *info)
1609{ 1614{