net: hsr: Don't log netdev_err message on unknown prp dst node
authorKristian Overskeid <koverskeid@gmail.com>
Thu, 9 Mar 2023 09:23:02 +0000 (10:23 +0100)
committerJakub Kicinski <kuba@kernel.org>
Mon, 13 Mar 2023 23:15:58 +0000 (16:15 -0700)
commit4821c186b9c343760a293b455b603735291a7865
treedec06799fff68ea05ed80e9e1d8072a670fe1b45
parent90c7dd32652bcfcc7716c762bc095a7d49ad85dd
net: hsr: Don't log netdev_err message on unknown prp dst node

If no frames has been exchanged with a node for HSR_NODE_FORGET_TIME, the
node will be deleted from the node_db list. If a frame is sent to the node
after it is deleted, a netdev_err message for each slave interface is
produced. This should not happen with dan nodes because of supervision
frames, but can happen often with san nodes, which clutters the kernel
log. Since the hsr protocol does not support sans, this is only relevant
for the prp protocol.

Signed-off-by: Kristian Overskeid <koverskeid@gmail.com>
Link: https://lore.kernel.org/r/20230309092302.179586-1-koverskeid@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/hsr/hsr_framereg.c