|
@@ -4771,8 +4771,13 @@ void __dev_notify_flags(struct net_device *dev, unsigned int old_flags)
|
|
|
}
|
|
|
|
|
|
if (dev->flags & IFF_UP &&
|
|
|
- (changes & ~(IFF_UP | IFF_PROMISC | IFF_ALLMULTI | IFF_VOLATILE)))
|
|
|
- call_netdevice_notifiers(NETDEV_CHANGE, dev);
|
|
|
+ (changes & ~(IFF_UP | IFF_PROMISC | IFF_ALLMULTI | IFF_VOLATILE))) {
|
|
|
+ struct netdev_notifier_change_info change_info;
|
|
|
+
|
|
|
+ change_info.flags_changed = changes;
|
|
|
+ call_netdevice_notifiers_info(NETDEV_CHANGE, dev,
|
|
|
+ &change_info.info);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|