net: hsr: Don't log netdev_err message on unknown prp dst node
authorKristian Overskeid <koverskeid@gmail.com>
Tue, 7 Mar 2023 13:32:29 +0000 (14:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Apr 2023 10:10:39 +0000 (12:10 +0200)
commit8b4dc07eb938d682717acfad1b9d2448c5a11a83
tree50dedfad77f0b880c9e3e598deac206fd67888b5
parent5045360f3bb62ccd4f87202e33489f71f8bbc3fc
net: hsr: Don't log netdev_err message on unknown prp dst node

[ Upstream commit 28e8cabe80f3e6e3c98121576eda898eeb20f1b1 ]

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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/hsr/hsr_framereg.c