mbox series

[v2,net-next,0/7] neighbour: Convert RTM_GETNEIGH and RTM_{GET,SET}NEIGHTBL to RCU.

Message ID 20250418012727.57033-1-kuniyu@amazon.com (mailing list archive)
Headers show
Series neighbour: Convert RTM_GETNEIGH and RTM_{GET,SET}NEIGHTBL to RCU. | expand

Message

Kuniyuki Iwashima April 18, 2025, 1:26 a.m. UTC
Patch 1 - 4 moves validations and skb allocation in neigh_get()
as prep for patch 5, which converts RTM_GETNEIGH to RCU.

Patch 6 & 7 converts RTM_GETNEIGHTBL and RTM_SETNEIGHTBL to RCU,
which requires almost nothing.


Changes:
  v2:
    * Patch 1 & 2 : Fix ERR_PTR(0) paths

  v1: https://lore.kernel.org/netdev/20250416004253.20103-1-kuniyu@amazon.com/


Kuniyuki Iwashima (7):
  neighbour: Make neigh_valid_get_req() return ndmsg.
  neighbour: Move two validations from neigh_get() to
    neigh_valid_get_req().
  neighbour: Allocate skb in neigh_get().
  neighbour: Move neigh_find_table() to neigh_get().
  neighbour: Convert RTM_GETNEIGH to RCU.
  neighbour: Convert RTM_GETNEIGHTBL to RCU.
  neighbour: Convert RTM_SETNEIGHTBL to RCU.

 net/core/neighbour.c | 211 +++++++++++++++++++++----------------------
 1 file changed, 105 insertions(+), 106 deletions(-)