projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b9e654
)
dev: always advertise the new nsid when the netns iface changes
author
Nicolas Dichtel
<
[email protected]
>
Thu, 25 Jan 2018 14:01:38 +0000
(15:01 +0100)
committer
David S. Miller
<
[email protected]
>
Mon, 29 Jan 2018 17:23:51 +0000
(12:23 -0500)
The user should be able to follow any interface that moves to another
netns. There is no reason to hide physical interfaces.
CC: Jiri Benc <
[email protected]
>
CC: Christian Brauner <
[email protected]
>
Signed-off-by: Nicolas Dichtel <
[email protected]
>
Reviewed-by: Jiri Benc <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/core/dev.c
patch
|
blob
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index 4670ccabe23a4993f3d10604ba2ec759e7cfa24f..59987eb6511aeb4ab263870e075be4a5be94fbe8 100644
(file)
--- a/
net/core/dev.c
+++ b/
net/core/dev.c
@@
-8529,10
+8529,7
@@
int dev_change_net_namespace(struct net_device *dev, struct net *net, const char
call_netdevice_notifiers(NETDEV_UNREGISTER, dev);
rcu_barrier();
call_netdevice_notifiers(NETDEV_UNREGISTER_FINAL, dev);
- if (dev->rtnl_link_ops && dev->rtnl_link_ops->get_link_net)
- new_nsid = peernet2id_alloc(dev_net(dev), net);
- else
- new_nsid = peernet2id(dev_net(dev), net);
+ new_nsid = peernet2id_alloc(dev_net(dev), net);
rtmsg_ifinfo_newnet(RTM_DELLINK, dev, ~0U, GFP_KERNEL, &new_nsid);
/*