]> www.infradead.org Git - users/dwmw2/linux.git/commit
neighbour: Add hlist_node to struct neighbour
authorGilad Naaman <gnaaman@drivenets.com>
Thu, 7 Nov 2024 16:04:38 +0000 (16:04 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 Nov 2024 21:22:56 +0000 (13:22 -0800)
commit41b3caa7c0761141aa6d508924b9d23db57a17bc
treed3bc0c2805d46db5cb705b72204f2bb4598cf291
parent5e5be50342c04d4ff8aa2670c202b15efd4c459d
neighbour: Add hlist_node to struct neighbour

Add a doubly-linked node to neighbours, so that they
can be deleted without iterating the entire bucket they're in.

Signed-off-by: Gilad Naaman <gnaaman@drivenets.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20241107160444.2913124-2-gnaaman@drivenets.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/neighbour.h
net/core/neighbour.c