Skip to content

fib: rules: Convert RTM_NEWRULE and RTM_DELRULE 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 Latest8 patches 10 repliesApplied 8/8
  2. v16 patches 4 repliesSuperseded

Changes in v2 from the cover letter

* Add patch 4 & 5
* Don't use !!extack to check if RTNL is held

Patches in v2 All 8 applied

#Subject and filesSizeRepliesApplied
1/8net: fib_rules: Don't check net in rule_exists() and rule_find().net/core/fib_rules.c+0 -61 replyApplied
2/8net: fib_rules: Pass net to fib_nl2rule() instead of skb.net/core/fib_rules.c+3 -41 replyApplied
3/8net: fib_rules: Split fib_nl2rule().net/core/fib_rules.c+41 -171 replyApplied
4/8ip: fib_rules: Fetch net from fib_rule in fib[46]_rule_configure().net/ipv4/fib_rules.c net/ipv6/fib6_rules.c+4 -41 replyApplied
5/8net: fib_rules: Factorise fib_newrule() and fib_delrule().drivers/net/vrf.c include/net/fib_rules.h net/core/fib_rules.c+29 -211 replyApplied
6/8net: fib_rules: Convert RTM_NEWRULE to per-netns RTNL.net/core/fib_rules.c+14 -21 replyApplied
7/8net: fib_rules: Add error_free label in fib_delrule().net/core/fib_rules.c+6 -51 replyApplied
8/8net: fib_rules: Convert RTM_DELRULE to per-netns RTNL.net/core/fib_rules.c+16 -71 replyApplied

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchEric DumazetIdo Schimmel
SeriesR-b R-b T-b
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-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/8] fib: rules: Convert RTM_NEWRULE and RTM_DELRULE to per-netns RTNL.

Patch 1 ~ 2 are small cleanup, and patch 3 ~ 8 make fib_nl_newrule() and fib_nl_delrule() hold per-netns RTNL.

Changes:
v2:
* Add patch 4 & 5
* Don't use !!extack to check if RTNL is held

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

Kuniyuki Iwashima (8):
net: fib_rules: Don't check net in rule_exists() and rule_find().
net: fib_rules: Pass net to fib_nl2rule() instead of skb.
net: fib_rules: Split fib_nl2rule().
ip: fib_rules: Fetch net from fib_rule in fib[46]_rule_configure().
net: fib_rules: Factorise fib_newrule() and fib_delrule().
net: fib_rules: Convert RTM_NEWRULE to per-netns RTNL.
net: fib_rules: Add error_free label in fib_delrule().
net: fib_rules: Convert RTM_DELRULE to per-netns RTNL.

 drivers/net/vrf.c       |   6 +-
 include/net/fib_rules.h |   8 +--
 net/core/fib_rules.c    | 151 ++++++++++++++++++++++++++--------------
 net/ipv4/fib_rules.c    |   4 +-
 net/ipv6/fib6_rules.c   |   4 +-
 5 files changed, 110 insertions(+), 63 deletions(-)
Signature · 1 line
2.39.5 (Apple Git-154)