Skip to contentSkip to conversation

net: dsa: tag_netc: improve log printing in netc_rcv()

PATCH Applied [email protected] 2 participants 2 messages Nov 30 – Dec 4

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: dsa: tag_netc: improve log printing in netc_rcv()

From: Wei Fang <[email protected]>

When ENETC VFs are enabled, VFs send some broadcast frames, which are forwarded back to the CPU via the NETC switch. However, the VEPA switch are not currently supported, so these broadcast frames are dropped and a related log is printed. Continuously printing the log is pointless and can be annoying to users, so the log is changed to output only once.

---
 net/dsa/tag_netc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
net/dsa/tag_netc.c +2 -2
index c1c0ffee75c1..9e637d0710b3 100644
@@ -282,8 +282,8 @@ static struct sk_buff *netc_rcv(struct sk_buff *skb,
 	sw_id = FIELD_GET(NETC_TAG_SWITCH, tag_cmn->switch_port);
 	/* ENETC VEPA switch ID (0) is not supported yet */
 	if (!sw_id) {
-		dev_warn_ratelimited(&ndev->dev,
-				     "VEPA switch ID is not supported yet\n");
+		dev_info_once(&ndev->dev,
+			      "VEPA switch ID is not supported yet\n");
 		goto err_free_skb;
 	}
 
Signature · 1 line
2.34.1
#1 lore raw
This patch was applied to netdev/net-next.git (main) by Willem de Bruijn <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Willem de Bruijn <[email protected]>:

Quoted 9 lines · On Mon, 30 Nov 2026 15:09:19 +0800 you wrote:

From: Wei Fang <[email protected]>

When ENETC VFs are enabled, VFs send some broadcast frames, which are forwarded back to the CPU via the NETC switch. However, the VEPA switch are not currently supported, so these broadcast frames are dropped and a related log is printed. Continuously printing the log is pointless and can be annoying to users, so the log is changed to output only once.

[...]

Here is the summary with links:
- [net-next] net: dsa: tag_netc: improve log printing in netc_rcv()

    https://git.kernel.org/netdev/net-next/c/4d1af9c75976

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html