]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
neighbour: restore protocol != 0 check in pneigh update
authorSabrina Dubroca <sd@queasysnail.net>
Tue, 10 Mar 2026 21:59:16 +0000 (22:59 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Mar 2026 02:04:55 +0000 (19:04 -0700)
commitcbada1048847a348797aec63a1d8056621cbe653
tree96b6a23f094f693d841c73a59d177dbd7e289283
parente8f0dc024ce55451ebd54bad975134ba802e4fcc
neighbour: restore protocol != 0 check in pneigh update

Prior to commit dc2a27e524ac ("neighbour: Update pneigh_entry in
pneigh_create()."), a pneigh's protocol was updated only when the
value of the NDA_PROTOCOL attribute was non-0. While moving the code,
that check was removed. This is a small change of user-visible
behavior, and inconsistent with the (non-proxy) neighbour behavior.

Fixes: dc2a27e524ac ("neighbour: Update pneigh_entry in pneigh_create().")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/38c61de1bb032871a886aff9b9b52fe1cdd4cada.1772894876.git.sd@queasysnail.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/neighbour.c