diff options
author | 2025-02-19 20:50:29 +0800 | |
---|---|---|
committer | 2025-02-21 15:28:02 -0800 | |
commit | cf517ac16ad96f3953d65ea198c0b310a1ffa14f (patch) | |
tree | d8243f30ed1f38dda34dae12a11885eeff4c3de5 /net/ieee802154/6lowpan/core.c | |
parent | rtnetlink: Pack newlink() params into struct (diff) | |
download | wireguard-linux-cf517ac16ad96f3953d65ea198c0b310a1ffa14f.tar.xz wireguard-linux-cf517ac16ad96f3953d65ea198c0b310a1ffa14f.zip |
net: Use link/peer netns in newlink() of rtnl_link_ops
Add two helper functions - rtnl_newlink_link_net() and
rtnl_newlink_peer_net() for netns fallback logic. Peer netns falls back
to link netns, and link netns falls back to source netns.
Convert the use of params->net in netdevice drivers to one of the helper
functions for clarity.
Signed-off-by: Xiao Liang <shaw.leon@gmail.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250219125039.18024-4-shaw.leon@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions