Netdev List
 help / color / mirror / Atom feed
From: wei.fang@oss.nxp.com
To: xiaoning.wang@nxp.com, andrew@lunn.ch, olteanv@gmail.com,
	davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
	pabeni@redhat.com, willemb@google.com, horms@kernel.org
Cc: wei.fang@nxp.com, imx@lists.linux.dev, netdev@vger.kernel.org
Subject: [PATCH net-next] net: dsa: tag_netc: improve log printing in netc_rcv()
Date: Mon, 30 Nov 2026 15:09:19 +0800	[thread overview]
Message-ID: <20261130070919.2250959-1-wei.fang@oss.nxp.com> (raw)

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


                 reply	other threads:[~2026-11-30  7:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261130070919.2250959-1-wei.fang@oss.nxp.com \
    --to=wei.fang@oss.nxp.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=imx@lists.linux.dev \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=pabeni@redhat.com \
    --cc=wei.fang@nxp.com \
    --cc=willemb@google.com \
    --cc=xiaoning.wang@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox