| From: |
| Eric Dumazet <edumazet-AT-google.com> |
| To: |
| "David S . Miller" <davem-AT-davemloft.net>, Jakub Kicinski <kuba-AT-kernel.org>, Paolo Abeni <pabeni-AT-redhat.com> |
| Subject: |
| [PATCH net-next 0/4] ipv4: preliminary work for per-netns RTNL |
| Date: |
| Fri, 04 Oct 2024 13:47:16 +0000 |
| Message-ID: |
| <20241004134720.579244-1-edumazet@google.com> |
| Cc: |
| David Ahern <dsahern-AT-kernel.org>, Kuniyuki Iwashima <kuniyu-AT-amazon.com>, Alexandre Ferrieux <alexandre.ferrieux-AT-orange.com>, netdev-AT-vger.kernel.org, eric.dumazet-AT-gmail.com, Eric Dumazet <edumazet-AT-google.com> |
| Archive-link: |
| Article |
Inspired by 9b8ca04854fd ("ipv4: avoid quadratic behavior in
FIB insertion of common address") and per-netns RTNL conversion
started by Kuniyuki this week.
ip_fib_check_default() can use RCU instead of a shared spinlock.
fib_info_lock can be removed, RTNL is already used.
fib_info_devhash[] can be removed in favor of a single
pointer in net_device.
Eric Dumazet (4):
ipv4: remove fib_devindex_hashfn()
ipv4: use rcu in ip_fib_check_default()
ipv4: remove fib_info_lock
ipv4: remove fib_info_devhash[]
.../networking/net_cachelines/net_device.rst | 1 +
include/linux/netdevice.h | 2 +
net/ipv4/fib_semantics.c | 77 +++++++------------
3 files changed, 31 insertions(+), 49 deletions(-)
--
2.47.0.rc0.187.ge670bccf7e-goog