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>
This commit is contained in:
Jiri Pirko
2013-05-28 01:30:22 +00:00
committed by David S. Miller
parent 351638e7de
commit be9efd3653
2 changed files with 12 additions and 2 deletions

View File

@@ -1604,6 +1604,11 @@ struct netdev_notifier_info {
struct net_device *dev;
};
struct netdev_notifier_change_info {
struct netdev_notifier_info info; /* must be first */
unsigned int flags_changed;
};
static inline struct net_device *
netdev_notifier_info_to_dev(const struct netdev_notifier_info *info)
{