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!