diff mbox series

[v2] net: hsr: Don't log netdev_err message on unknown prp dst node

Message ID 20230309092302.179586-1-koverskeid@gmail.com (mailing list archive)
State Accepted
Commit 4821c186b9c343760a293b455b603735291a7865
Delegated to: Netdev Maintainers
Headers show
Series [v2] net: hsr: Don't log netdev_err message on unknown prp dst node | expand

Checks

Context Check Description
netdev/series_format warning Single patches do not need cover letters; Target tree name not specified in the subject
netdev/tree_selection success Guessed tree name to be net-next
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 20 this patch: 20
netdev/cc_maintainers warning 4 maintainers not CCed: kuba@kernel.org edumazet@google.com pabeni@redhat.com davem@davemloft.net
netdev/build_clang success Errors and warnings before: 18 this patch: 18
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 20 this patch: 20
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 8 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Kristian Overskeid March 9, 2023, 9:23 a.m. UTC
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>
---
 V1 -> V2: Addressed review comments
 
 net/hsr/hsr_framereg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

patchwork-bot+netdevbpf@kernel.org March 13, 2023, 11:20 p.m. UTC | #1
Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Thu,  9 Mar 2023 10:23:02 +0100 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - [v2] net: hsr: Don't log netdev_err message on unknown prp dst node
    https://git.kernel.org/netdev/net-next/c/4821c186b9c3

You are awesome, thank you!
diff mbox series

Patch

diff --git a/net/hsr/hsr_framereg.c b/net/hsr/hsr_framereg.c
index 00db74d96583..b77f1189d19d 100644
--- a/net/hsr/hsr_framereg.c
+++ b/net/hsr/hsr_framereg.c
@@ -415,7 +415,7 @@  void hsr_addr_subst_dest(struct hsr_node *node_src, struct sk_buff *skb,
 	node_dst = find_node_by_addr_A(&port->hsr->node_db,
 				       eth_hdr(skb)->h_dest);
 	if (!node_dst) {
-		if (net_ratelimit())
+		if (port->hsr->prot_version != PRP_V1 && net_ratelimit())
 			netdev_err(skb->dev, "%s: Unknown node\n", __func__);
 		return;
 	}