|
@@ -5686,6 +5686,10 @@ int dev_change_net_namespace(struct net_device *dev, struct net *net, const char
|
|
|
|
|
|
/* Notify protocols, that we are about to destroy
|
|
/* Notify protocols, that we are about to destroy
|
|
this device. They should clean all the things.
|
|
this device. They should clean all the things.
|
|
|
|
+
|
|
|
|
+ Note that dev->reg_state stays at NETREG_REGISTERED.
|
|
|
|
+ This is wanted because this way 8021q and macvlan know
|
|
|
|
+ the device is just moving and can keep their slaves up.
|
|
*/
|
|
*/
|
|
call_netdevice_notifiers(NETDEV_UNREGISTER, dev);
|
|
call_netdevice_notifiers(NETDEV_UNREGISTER, dev);
|
|
call_netdevice_notifiers(NETDEV_UNREGISTER_BATCH, dev);
|
|
call_netdevice_notifiers(NETDEV_UNREGISTER_BATCH, dev);
|