Re: [PATCH v3 net 0/4] neighbour: Small fixes for RTM_{GET,SET}NEIGHTBL.
From: Jakub Kicinski <kuba@kernel.org>
Date: 2026-09-12 00:30:57
On Wed, 9 Sep 2026 23:31:22 +0000 Kuniyuki Iwashima wrote:
While working on the follow-up suggested here, https://lore.kernel.org/netdev/20260902143023.GA3966681@shredder/ (local)
Conflict resolution with net-next: diff --cc net/core/neighbour.c index 27602bcbeb69,7448320f7ad5..000000000000
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c@@@ -2659,9 -2620,15 +2669,12 @@@ static int neightbl_dump_info(struct sk
NLM_F_MULTI) < 0)
break;
- nidx = 0;
- p = list_next_entry(&tbl->parms, list);
- list_for_each_entry_from_rcu(p, &tbl->parms_list, list) {
+ default_skip = 1;
+
+ list_for_each_entry_rcu(p, &tbl->parms_list, list) {
- if (!net_eq(neigh_parms_net(p), net))
- continue;
-
+ if (!p->dev || p->dev == blackhole_netdev)
+ continue;
+
if (nidx < neigh_skip)
goto next;
?