Re: [PATCH net-next v10 06/13] net: ip_tunnel: Use link netns in newlink() of rtnl_link_ops

From: Kuniyuki Iwashima
Date: Thu Feb 20 2025 - 22:36:30 EST


From: Xiao Liang <shaw.leon@xxxxxxxxx>
Date: Wed, 19 Feb 2025 20:50:32 +0800
> 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.
>
> Convert common ip_tunnel_newlink() to accept an extra link netns
> argument.
>
> Signed-off-by: Xiao Liang <shaw.leon@xxxxxxxxx>

Reviewed-by: Kuniyuki Iwashima <kuniyu@xxxxxxxxxx>