diff options
author | 2025-02-19 20:50:35 +0800 | |
---|---|---|
committer | 2025-02-21 15:28:03 -0800 | |
commit | 5314e3d68455c56161c02133e08a44c3a9e8cf4a (patch) | |
tree | ba3e2191d9747c420cc1991258ff2d7d3dd75ad1 /net/unix/sysctl_net_unix.c | |
parent | net: ipv6: Use link netns in newlink() of rtnl_link_ops (diff) | |
download | wireguard-linux-5314e3d68455c56161c02133e08a44c3a9e8cf4a.tar.xz wireguard-linux-5314e3d68455c56161c02133e08a44c3a9e8cf4a.zip |
net: xfrm: 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-10-shaw.leon@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions