mbox series

[net-next,v2,0/2] net: notify users when an iface cannot change its netns

Message ID 20250218171334.3593873-1-nicolas.dichtel@6wind.com (mailing list archive)
Headers show
Series net: notify users when an iface cannot change its netns | expand

Message

Nicolas Dichtel Feb. 18, 2025, 5:12 p.m. UTC
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