]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: ipv6: Use link netns in newlink() of rtnl_link_ops
authorXiao Liang <shaw.leon@gmail.com>
Wed, 19 Feb 2025 12:50:34 +0000 (20:50 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 21 Feb 2025 23:28:02 +0000 (15:28 -0800)
commit5e72ce3e39800791700cf3aae4348a1727d3548d
treeae112e1fbffc1a3c3661e472f068182b3fb8a3aa
parentdb014522f35606031d8ac58b4aed6b1ed84f03d1
net: ipv6: Use link netns in newlink() of rtnl_link_ops

When link_net is set, use it as link netns instead of dev_net(). This
prepares for rtnetlink core to create device in target netns directly,
in which case the two namespaces may be different.

Signed-off-by: Xiao Liang <shaw.leon@gmail.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250219125039.18024-9-shaw.leon@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/ip6_gre.c
net/ipv6/ip6_tunnel.c
net/ipv6/ip6_vti.c
net/ipv6/sit.c