This series adds a way to see if an interface cannot be moved to another netns.
v1 -> v2:
- target the series to net-next
- patch #1:
+ use NLA_REJECT for the nl policy
+ update the rt link spec
- patch #2: plumb extack in __dev_change_net_namespace()
Documentation/netlink/specs/rt_link.yaml | 3 +++
include/linux/netdevice.h | 5 ++--
include/uapi/linux/if_link.h | 1 +
net/core/dev.c | 41 +++++++++++++++++++++++++-------
net/core/rtnetlink.c | 5 +++-
5 files changed, 44 insertions(+), 11 deletions(-)
Comments are welcome.
Regards,
Nicolas