]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
neighbour: add support for NUD_PERMANENT proxy entries
authorNicolas Escande <nico.escande@gmail.com>
Tue, 17 Jun 2025 14:13:34 +0000 (16:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:23 +0000 (16:28 +0200)
commit7c299d0bc98386982a4ac79179e48426e5c21bfc
tree1cbcb125e0c4ef42dfbf0ce6d7dbd64d5aceb64f
parenta70c31416dddd60f4aa1e1ed863e20a153e92000
neighbour: add support for NUD_PERMANENT proxy entries

[ Upstream commit c7d78566bbd30544a0618a6ffbc97bc0ddac7035 ]

As discussesd before in [0] proxy entries (which are more configuration
than runtime data) should stay when the link (carrier) goes does down.
This is what happens for regular neighbour entries.

So lets fix this by:
  - storing in proxy entries the fact that it was added as NUD_PERMANENT
  - not removing NUD_PERMANENT proxy entries when the carrier goes down
    (same as how it's done in neigh_flush_dev() for regular neigh entries)

[0]: https://lore.kernel.org/netdev/c584ef7e-6897-01f3-5b80-12b53f7b4bf4@kernel.org/

Signed-off-by: Nicolas Escande <nico.escande@gmail.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20250617141334.3724863-1-nico.escande@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/neighbour.h
net/core/neighbour.c