aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index c09ff096525a..2c7934f8cf3e 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -5686,6 +5686,10 @@ int dev_change_net_namespace(struct net_device *dev, struct net *net, const char
5686 5686
5687 /* Notify protocols, that we are about to destroy 5687 /* Notify protocols, that we are about to destroy
5688 this device. They should clean all the things. 5688 this device. They should clean all the things.
5689
5690 Note that dev->reg_state stays at NETREG_REGISTERED.
5691 This is wanted because this way 8021q and macvlan know
5692 the device is just moving and can keep their slaves up.
5689 */ 5693 */
5690 call_netdevice_notifiers(NETDEV_UNREGISTER, dev); 5694 call_netdevice_notifiers(NETDEV_UNREGISTER, dev);
5691 call_netdevice_notifiers(NETDEV_UNREGISTER_BATCH, dev); 5695 call_netdevice_notifiers(NETDEV_UNREGISTER_BATCH, dev);