[PATCH v1 net-next 00/11] neighbour: Namespacify arp_tbl and nd_tbl.
From: Kuniyuki Iwashima <kuniyu@google.com>
Date: 2026-08-06 01:11:55
The neighbour subsystem is almost ready to drop RTNL.
However, the control paths are serialised by the global
per-table lock.
This series converts arp_tbl and nd_tbl to per-netns table.
Patch 1 ~ 2 are misc cleanup.
Patch 3 ~ 6 store arp_tbl/nd_tbl to net->neigh_tables[] and
remove the global neigh_tables[].
Patch 7 ~ 8 replaces the direct access to arp_tbl/nd_tbl to
net->neigh_tables[] using new helpers.
Patch 9 ~ 10 finally replaces the global table with per-netns
table.
Patch 11 cleans up unnecessary net_eq().
Note that some buggy drivers access nd_tbl without checking
disable_ipv6_mod, so nd_tbl's extern definition is still left.
Kuniyuki Iwashima (11):
neighbour: Remove __neigh_for_each_release().
neighbour: Remove lock dance for neigh_update_{gc,managed}_list().
neighbour: Remove unnecessary EXPORT_SYMBOL().
neighbour: Remove __rcu from neigh_tables[].
neighbour: Store arp_tbl and nd_tbl in net->neigh_tables[].
neighbour: Remove neigh_tables[].
ipv4: Replace &arp_tbl with arp_table(net).
ipv6: Replace &nd_tbl with nd_table(net).
neighbour: Clean up neigh_table_init() and neigh_table_clear().
neighbour: Namespacify neigh_tables.
neighbour: Remove unnecessary net_eq().
drivers/infiniband/ulp/ipoib/ipoib_main.c | 27 +-
.../marvell/prestera/prestera_router.c | 10 +-
.../mellanox/mlx5/core/en/rep/neigh.c | 29 +-
.../mellanox/mlx5/core/en/tc_tun_encap.c | 23 +-
.../mellanox/mlx5/core/en_accel/ipsec.c | 6 +-
.../ethernet/mellanox/mlxsw/spectrum_router.c | 31 +-
.../ethernet/mellanox/mlxsw/spectrum_span.c | 10 +-
.../netronome/nfp/flower/tunnel_conf.c | 14 +-
drivers/net/ethernet/rocker/rocker_main.c | 2 +-
drivers/net/ethernet/rocker/rocker_ofdpa.c | 2 +-
drivers/net/ethernet/sfc/tc_counters.c | 8 +-
drivers/net/ethernet/sfc/tc_encap_actions.c | 4 +-
drivers/net/vrf.c | 2 +-
drivers/net/vxlan/vxlan_core.c | 16 +-
include/net/arp.h | 10 +-
include/net/ndisc.h | 20 +-
include/net/neighbour.h | 6 +-
include/net/net_namespace.h | 4 +
include/net/route.h | 7 +-
net/bridge/br_arp_nd_proxy.c | 4 +-
net/core/neighbour.c | 318 ++++++++----------
net/ieee802154/6lowpan/tx.c | 3 +-
net/ipv4/arp.c | 131 +++++---
net/ipv4/devinet.c | 18 +-
net/ipv4/fib_semantics.c | 7 +-
net/ipv4/route.c | 2 +-
net/ipv6/addrconf.c | 17 +-
net/ipv6/ip6_output.c | 4 +-
net/ipv6/ndisc.c | 146 ++++----
net/ipv6/route.c | 18 +-
30 files changed, 484 insertions(+), 415 deletions(-)
--
2.55.0.679.g6767b8d81c-goog