Skip to content

nexthop: Convert RTM_{NEW,DEL}NEXTHOP to per-netns RTNL.

Kuniyuki Iwashima netdev 2 versions – 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 · linked by author and title

  1. v2 Latest7 patches 16 repliesApplied 7/7
  2. v17 patches 2 repliesSuperseded

Changes in v2 from the cover letter

* Patch 2
* Correct err check in rtm_new_nexthop()

Patches in v2 All 7 applied

#Subject and filesSizeRepliesApplied
1/7nexthop: Move nlmsg_parse() in rtm_to_nh_config() to rtm_new_nexthop().net/ipv4/nexthop.c+18 -152 repliesApplied
2/7nexthop: Split nh_check_attr_group().net/ipv4/nexthop.c+47 -212 repliesApplied
3/7nexthop: Move NHA_OIF validation to rtm_to_nh_config_rtnl().net/ipv4/nexthop.c+23 -202 repliesApplied
4/7nexthop: Check NLM_F_REPLACE and NHA_ID in rtm_new_nexthop().net/ipv4/nexthop.c+6 -52 repliesApplied
5/7nexthop: Remove redundant group len check in nexthop_create_group().net/ipv4/nexthop.c+0 -32 repliesApplied
6/7nexthop: Convert RTM_NEWNEXTHOP to per-netns RTNL.net/ipv4/nexthop.c+11 -52 repliesApplied
7/7nexthop: Convert RTM_DELNEXTHOP to per-netns RTNL.net/ipv4/nexthop.c+10 -52 repliesApplied

Reviews trailers per patch

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

PatchDavid AhernEric Dumazet
1/7R-b R-b
2/7R-b R-b
3/7R-b R-b
4/7R-b R-b
5/7R-b R-b
6/7R-b R-b
7/7R-b R-b

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

Read the v2 thread

Cover letter [PATCH v2 net-next 0/7] nexthop: Convert RTM_{NEW,DEL}NEXTHOP to per-netns RTNL.

Patch 1 - 5 move some validation for RTM_NEWNEXTHOP so that it can be called without RTNL.

Patch 6 & 7 converts RTM_NEWNEXTHOP and RTM_DELNEXTHOP to per-netns RTNL.

Note that RTM_GETNEXTHOP and RTM_GETNEXTHOPBUCKET are not touched in this series.

rtm_get_nexthop() can be easily converted to RCU, but rtm_dump_nexthop() needs more work due to the left-to-right rbtree walk, which looks prone to node deletion and tree rotation without a retry mechanism.

Changes:
v2:
* Patch 2
* Correct err check in rtm_new_nexthop()

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

Kuniyuki Iwashima (7):
nexthop: Move nlmsg_parse() in rtm_to_nh_config() to

    rtm_new_nexthop().

nexthop: Split nh_check_attr_group().
nexthop: Move NHA_OIF validation to rtm_to_nh_config_rtnl().
nexthop: Check NLM_F_REPLACE and NHA_ID in rtm_new_nexthop().
nexthop: Remove redundant group len check in nexthop_create_group().
nexthop: Convert RTM_NEWNEXTHOP to per-netns RTNL.
nexthop: Convert RTM_DELNEXTHOP to per-netns RTNL.

 net/ipv4/nexthop.c | 183 +++++++++++++++++++++++++++------------------
 1 file changed, 112 insertions(+), 71 deletions(-)
Signature · 1 line
2.48.1