netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net-next 0/8] fib: rules: Convert RTM_NEWRULE and RTM_DELRULE to per-netns RTNL.
@ 2025-02-07  7:24 Kuniyuki Iwashima
  2025-02-07  7:24 ` [PATCH v2 net-next 1/8] net: fib_rules: Don't check net in rule_exists() and rule_find() Kuniyuki Iwashima
                   ` (10 more replies)
  0 siblings, 11 replies; 20+ messages in thread
From: Kuniyuki Iwashima @ 2025-02-07  7:24 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Simon Horman
  Cc: Ido Schimmel, Kuniyuki Iwashima, Kuniyuki Iwashima, netdev

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/20250206084629.16602-1-kuniyu@amazon.com/


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(-)

-- 
2.39.5 (Apple Git-154)


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2025-02-11  3:30 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-07  7:24 [PATCH v2 net-next 0/8] fib: rules: Convert RTM_NEWRULE and RTM_DELRULE to per-netns RTNL Kuniyuki Iwashima
2025-02-07  7:24 ` [PATCH v2 net-next 1/8] net: fib_rules: Don't check net in rule_exists() and rule_find() Kuniyuki Iwashima
2025-02-07  8:27   ` Eric Dumazet
2025-02-07  7:24 ` [PATCH v2 net-next 2/8] net: fib_rules: Pass net to fib_nl2rule() instead of skb Kuniyuki Iwashima
2025-02-07  8:28   ` Eric Dumazet
2025-02-07  7:24 ` [PATCH v2 net-next 3/8] net: fib_rules: Split fib_nl2rule() Kuniyuki Iwashima
2025-02-07  8:30   ` Eric Dumazet
2025-02-07  7:24 ` [PATCH v2 net-next 4/8] ip: fib_rules: Fetch net from fib_rule in fib[46]_rule_configure() Kuniyuki Iwashima
2025-02-07  8:34   ` Eric Dumazet
2025-02-07  7:24 ` [PATCH v2 net-next 5/8] net: fib_rules: Factorise fib_newrule() and fib_delrule() Kuniyuki Iwashima
2025-02-07  8:34   ` Eric Dumazet
2025-02-07  7:25 ` [PATCH v2 net-next 6/8] net: fib_rules: Convert RTM_NEWRULE to per-netns RTNL Kuniyuki Iwashima
2025-02-07  8:35   ` Eric Dumazet
2025-02-07  7:25 ` [PATCH v2 net-next 7/8] net: fib_rules: Add error_free label in fib_delrule() Kuniyuki Iwashima
2025-02-07  8:37   ` Eric Dumazet
2025-02-07  7:25 ` [PATCH v2 net-next 8/8] net: fib_rules: Convert RTM_DELRULE to per-netns RTNL Kuniyuki Iwashima
2025-02-07  8:36   ` Eric Dumazet
2025-02-07  8:37 ` [PATCH v2 net-next 0/8] fib: rules: Convert RTM_NEWRULE and " Eric Dumazet
2025-02-07 10:20 ` Ido Schimmel
2025-02-11  3:30 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).