[openwrt/openwrt] realtek: eth: rtl931x: reduce logging of special packet trap

LEDE Commits lede-commits at lists.infradead.org
Mon Feb 2 12:56:14 PST 2026


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/6adcd5fa3bd437f23c610d858a3abd0c73dd2863

commit 6adcd5fa3bd437f23c610d858a3abd0c73dd2863
Author: Jonas Jelonek <jelonek.jonas at gmail.com>
AuthorDate: Mon Feb 2 19:31:11 2026 +0000

    realtek: eth: rtl931x: reduce logging of special packet trap
    
    For packets trapped to the CPU for a special reason (not normal
    forward), the RTL931x tag decoding always print a log message with level
    INFO. This is not needed and just spams the log, e.g. when LLDP packets
    are running through the network, each of them causes a log message.
    
    Make that a debug message instead of an info message. We can keep it,
    just change when it's printed.
    
    Signed-off-by: Jonas Jelonek <jelonek.jonas at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/21844
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c b/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c
index 28bc4cafe5..67cdaa5e73 100644
--- a/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c
+++ b/target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c
@@ -311,7 +311,7 @@ static bool rteth_931x_decode_tag(struct p_hdr *h, struct dsa_tag *t)
 	t->crc_error = h->cpu_tag[1] & BIT(6);
 
 	if (t->reason != 63)
-		pr_info("%s: Reason %d, port %d, queue %d\n", __func__, t->reason, t->port, t->queue);
+		pr_debug("%s: Reason %d, port %d, queue %d\n", __func__, t->reason, t->port, t->queue);
 	if (t->reason >= 19 && t->reason <= 27)	/* NIC_RX_REASON_RMA */
 		t->l2_offloaded = 0;
 	else




More information about the lede-commits mailing list