]> www.infradead.org Git - users/hch/misc.git/commit
neighbour: Convert iteration to use hlist+macro
authorGilad Naaman <gnaaman@drivenets.com>
Thu, 7 Nov 2024 16:04:41 +0000 (16:04 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 Nov 2024 21:22:57 +0000 (13:22 -0800)
commit0e3bcb0f78a0ca7cfdb7906dc79d922e19ba09b5
treea7cdb8dacb3a76e19d797a2515253486cc7fed73
parent00df5e1a3fdf36624d59ef6ab09010ebaee6e66a
neighbour: Convert iteration to use hlist+macro

Remove all usage of the bare neighbour::next pointer,
replacing them with neighbour::hash and its for_each macro.

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-5-gnaaman@drivenets.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/neighbour.h
net/core/neighbour.c