mbox series

[v2,net-next,00/11] ipv6: Convert RTM_{NEW,DEL}ADDR and more to per-netns RTNL.

Message ID 20250115080608.28127-1-kuniyu@amazon.com (mailing list archive)
Headers show
Series ipv6: Convert RTM_{NEW,DEL}ADDR and more to per-netns RTNL. | expand

Message

Kuniyuki Iwashima Jan. 15, 2025, 8:05 a.m. UTC
This series converts RTM_NEWADDR/RTM_DELADDR and some more
RTNL users in addrconf.c to per-netns RTNL.


Changes:
  v2:
    * Reorder patch 7 and 8
    * Move ifa_flags setup before IFA_CACHEINFO in patch 8

  v1: https://lore.kernel.org/netdev/20250114080516.46155-1-kuniyu@amazon.com/


Kuniyuki Iwashima (11):
  ipv6: Add __in6_dev_get_rtnl_net().
  ipv6: Convert net.ipv6.conf.${DEV}.XXX sysctl to per-netns RTNL.
  ipv6: Hold rtnl_net_lock() in addrconf_verify_work().
  ipv6: Hold rtnl_net_lock() in addrconf_dad_work().
  ipv6: Hold rtnl_net_lock() in addrconf_init() and addrconf_cleanup().
  ipv6: Convert inet6_ioctl() to per-netns RTNL.
  ipv6: Pass dev to inet6_addr_add().
  ipv6: Set cfg.ifa_flags before device lookup in inet6_rtm_newaddr().
  ipv6: Move lifetime validation to inet6_rtm_newaddr().
  ipv6: Convert inet6_rtm_newaddr() to per-netns RTNL.
  ipv6: Convert inet6_rtm_deladdr() to per-netns RTNL.

 include/net/addrconf.h |   5 +
 net/ipv6/addrconf.c    | 253 ++++++++++++++++++++---------------------
 2 files changed, 128 insertions(+), 130 deletions(-)