🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by wei.fang Mon, 30 Nov 2026 07:09
[PATCH net-next] net: dsa: tag_netc: improve log printing in netc_rcv()
#24447
Author: wei.fang
Date: Mon, 30 Nov 2026 07:09
31 lines
17534 bytes
From: Wei Fang <wei.fang@nxp.com>

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.

Signed-off-by: Wei Fang <wei.fang@nxp.com>
---
 net/dsa/tag_netc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/dsa/tag_netc.c b/net/dsa/tag_netc.c
index c1c0ffee75c1..9e637d0710b3 100644
--- a/net/dsa/tag_netc.c
+++ b/net/dsa/tag_netc.c
@@ -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;
 	}
 
-- 
2.34.1
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads