Skip to content

ipv4: Convert RTM_{NEW,DEL}ADDR and more to per-netns RTNL.

Kuniyuki Iwashima netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 1 replyApplied 12/12

v2 from the cover letter

* Add patch 1 to address sparse warning for CONFIG_DEBUG_NET_SMALL_RTNL=n
* Add Eric's tags to patch 2-12

Patches in v1 All 12 applied

#Subject and filesSizeRepliesApplied
1/12rtnetlink: Make per-netns RTNL dereference helpers to macro.include/linux/rtnetlink.h+6 -151 replyApplied
2/12rtnetlink: Define RTNL_FLAG_DOIT_PERNET for per-netns RTNL doit().include/net/rtnetlink.h+1 -00 repliesApplied
3/12ipv4: Factorise RTM_NEWADDR validation to inet_validate_rtm().net/ipv4/devinet.c+44 -350 repliesApplied
4/12ipv4: Don't allocate ifa for 0.0.0.0 in inet_rtm_newaddr().net/ipv4/devinet.c+9 -80 repliesApplied
5/12ipv4: Convert RTM_NEWADDR to per-netns RTNL.net/ipv4/devinet.c+18 -100 repliesApplied
6/12ipv4: Use per-netns RTNL helpers in inet_rtm_newaddr().include/linux/inetdevice.h net/ipv4/devinet.c+13 -40 repliesApplied
7/12ipv4: Convert RTM_DELADDR to per-netns RTNL.net/ipv4/devinet.c+15 -90 repliesApplied
8/12ipv4: Convert check_lifetime() to per-netns RTNL.net/ipv4/devinet.c+5 -40 repliesApplied
9/12rtnetlink: Define rtnl_net_trylock().include/linux/rtnetlink.h net/core/rtnetlink.c+17 -00 repliesApplied
10/12ipv4: Convert devinet_sysctl_forward() to per-netns RTNL.net/ipv4/devinet.c+3 -30 repliesApplied
11/12ipv4: Convert devinet_ioctl() to per-netns RTNL except for SIOCSIFFLAGS.net/ipv4/devinet.c+9 -80 repliesApplied
12/12ipv4: Convert devinet_ioctl to per-netns RTNL.net/core/dev_ioctl.c net/ipv4/devinet.c+5 -50 repliesApplied

Reviews trailers per patch

All 12 patches have a Reviewed-by or Acked-by.

PatchEric DumazetSimon Horman
1/12R-b
2/12R-b
3/12R-b
4/12R-b
5/12R-b
6/12R-b
7/12R-b
8/12R-b
9/12R-b
10/12R-b
11/12R-b
12/12R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 net-next 00/12] ipv4: Convert RTM_{NEW,DEL}ADDR and more to per-netns RTNL.

The IPv4 address hash table and GC are already namespacified.

This series converts RTM_NEWADDR/RTM_DELADDR and some more RTNL users to per-netns RTNL.

Changes:
v2:
* Add patch 1 to address sparse warning for CONFIG_DEBUG_NET_SMALL_RTNL=n
* Add Eric's tags to patch 2-12

v1: https://lore.kernel.org/netdev/[email protected]/

Kuniyuki Iwashima (12):
rtnetlink: Make per-netns RTNL dereference helpers to macro.
rtnetlink: Define RTNL_FLAG_DOIT_PERNET for per-netns RTNL doit().
ipv4: Factorise RTM_NEWADDR validation to inet_validate_rtm().
ipv4: Don't allocate ifa for 0.0.0.0 in inet_rtm_newaddr().
ipv4: Convert RTM_NEWADDR to per-netns RTNL.
ipv4: Use per-netns RTNL helpers in inet_rtm_newaddr().
ipv4: Convert RTM_DELADDR to per-netns RTNL.
ipv4: Convert check_lifetime() to per-netns RTNL.
rtnetlink: Define rtnl_net_trylock().
ipv4: Convert devinet_sysctl_forward() to per-netns RTNL.
ipv4: Convert devinet_ioctl() to per-netns RTNL except for
SIOCSIFFLAGS.
ipv4: Convert devinet_ioctl to per-netns RTNL.

 include/linux/inetdevice.h |   9 ++
 include/linux/rtnetlink.h  |  25 +++--
 include/net/rtnetlink.h    |   1 +
 net/core/dev_ioctl.c       |   6 +-
 net/core/rtnetlink.c       |  11 +++
 net/ipv4/devinet.c         | 190 +++++++++++++++++++++----------------
 6 files changed, 143 insertions(+), 99 deletions(-)
Signature · 1 line
2.39.5 (Apple Git-154)