nexthop: Convert RTM_{NEW,DEL}NEXTHOP to per-netns RTNL.
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
- v2 Latest7 patches 16 repliesApplied 7/7
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | nexthop: Move nlmsg_parse() in rtm_to_nh_config() to rtm_new_nexthop().net/ | +18 | 2 replies | Applied |
| 2/7 | nexthop: Split nh_check_attr_group().net/ | +47 | 2 replies | Applied |
| 3/7 | nexthop: Move NHA_OIF validation to rtm_to_nh_config_rtnl().net/ | +23 | 2 replies | Applied |
| 4/7 | nexthop: Check NLM_F_REPLACE and NHA_ID in rtm_new_nexthop().net/ | +6 | 2 replies | Applied |
| 5/7 | nexthop: Remove redundant group len check in nexthop_create_group().net/ | +0 | 2 replies | Applied |
| 6/7 | nexthop: Convert RTM_NEWNEXTHOP to per-netns RTNL.net/ | +11 | 2 replies | Applied |
| 7/7 | nexthop: Convert RTM_DELNEXTHOP to per-netns RTNL.net/ | +10 | 2 replies | Applied |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | David Ahern | Eric Dumazet |
|---|---|---|
| 1/7 | R-b | R-b |
| 2/7 | R-b | R-b |
| 3/7 | R-b | R-b |
| 4/7 | R-b | R-b |
| 5/7 | R-b | R-b |
| 6/7 | R-b | R-b |
| 7/7 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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