Message ID | 20250219125039.18024-1-shaw.leon@gmail.com (mailing list archive) |
---|---|
Headers | show |
Series | net: Improve netns handling in rtnetlink | expand |
On Wed, 19 Feb 2025 20:50:26 +0800 Xiao Liang wrote: > Patch 01 avoids link name conflict in different netns. > > To achieve 2), there're mainly 3 steps: > > - Patch 02 packs newlink() parameters into a struct, including > the original "src_net" along with more netns context. No semantic > changes are introduced. > - Patch 03 ~ 09 converts device drivers to use the explicit netns > extracted from params. > - Patch 10 ~ 11 removes the old netns parameter, and converts > rtnetlink to create device in target netns directly. > > Patch 12 ~ 13 adds some tests for link name and link netns. Nice work, thank you!
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski <kuba@kernel.org>: On Wed, 19 Feb 2025 20:50:26 +0800 you wrote: > This patch series includes some netns-related improvements and fixes for > rtnetlink, to make link creation more intuitive: > > 1) Creating link in another net namespace doesn't conflict with link > names in current one. > 2) Refector rtnetlink link creation. Create link in target namespace > directly. > > [...] Here is the summary with links: - [net-next,v10,01/13] rtnetlink: Lookup device in target netns when creating link https://git.kernel.org/netdev/net-next/c/ec061546c6cf - [net-next,v10,02/13] rtnetlink: Pack newlink() params into struct https://git.kernel.org/netdev/net-next/c/69c7be1b903f - [net-next,v10,03/13] net: Use link/peer netns in newlink() of rtnl_link_ops https://git.kernel.org/netdev/net-next/c/cf517ac16ad9 - [net-next,v10,04/13] ieee802154: 6lowpan: Validate link netns in newlink() of rtnl_link_ops https://git.kernel.org/netdev/net-next/c/3533717581dd - [net-next,v10,05/13] net: ip_tunnel: Don't set tunnel->net in ip_tunnel_init() https://git.kernel.org/netdev/net-next/c/9e17b2a1a097 - [net-next,v10,06/13] net: ip_tunnel: Use link netns in newlink() of rtnl_link_ops https://git.kernel.org/netdev/net-next/c/eacb1160536e - [net-next,v10,07/13] net: ipv6: Init tunnel link-netns before registering dev https://git.kernel.org/netdev/net-next/c/db014522f356 - [net-next,v10,08/13] net: ipv6: Use link netns in newlink() of rtnl_link_ops https://git.kernel.org/netdev/net-next/c/5e72ce3e3980 - [net-next,v10,09/13] net: xfrm: Use link netns in newlink() of rtnl_link_ops https://git.kernel.org/netdev/net-next/c/5314e3d68455 - [net-next,v10,10/13] rtnetlink: Remove "net" from newlink params https://git.kernel.org/netdev/net-next/c/9c0fc091dc01 - [net-next,v10,11/13] rtnetlink: Create link directly in target net namespace https://git.kernel.org/netdev/net-next/c/7ca486d08a30 - [net-next,v10,12/13] selftests: net: Add python context manager for netns entering https://git.kernel.org/netdev/net-next/c/030329416232 - [net-next,v10,13/13] selftests: net: Add test cases for link and peer netns https://git.kernel.org/netdev/net-next/c/85cb3711acb8 You are awesome, thank you!