* [PATCH net v2] amd-xgbe: avoid misleading per-packet error log
@ 2026-01-14 16:30 Raju Rangoju
2026-01-19 14:18 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Raju Rangoju @ 2026-01-14 16:30 UTC (permalink / raw)
To: netdev
Cc: pabeni, kuba, edumazet, davem, andrew+netdev, Thomas.Lendacky,
Shyam-sundar.S-k, Raju Rangoju
On the receive path, packet can be damaged because of buffer
overflow in Rx FIFO. Avoid misleading per-packet error log when
packet->errors is set, this can flood the log. Instead, rely on the
standard rtnl_link_stats64 stats.
Fixes: c5aa9e3b8156 ("amd-xgbe: Initial AMD 10GbE platform driver")
Signed-off-by: Raju Rangoju <Raju.Rangoju@amd.com>
---
Changes since v1:
- fifo overflow errors are counted as part of standard
rtnl_link_stats64, so remove them from non-standard stats
drivers/net/ethernet/amd/xgbe/xgbe-drv.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c
index 3ddd896d6987..b5a60a048896 100644
--- a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c
+++ b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c
@@ -1837,7 +1837,7 @@ static void xgbe_get_stats64(struct net_device *netdev,
s->multicast = pstats->rxmulticastframes_g;
s->rx_length_errors = pstats->rxlengtherror;
s->rx_crc_errors = pstats->rxcrcerror;
- s->rx_fifo_errors = pstats->rxfifooverflow;
+ s->rx_over_errors = pstats->rxfifooverflow;
s->tx_packets = pstats->txframecount_gb;
s->tx_bytes = pstats->txoctetcount_gb;
@@ -2292,9 +2292,6 @@ static int xgbe_rx_poll(struct xgbe_channel *channel, int budget)
goto read_again;
if (error || packet->errors) {
- if (packet->errors)
- netif_err(pdata, rx_err, netdev,
- "error in received packet\n");
dev_kfree_skb(skb);
goto next_packet;
}
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net v2] amd-xgbe: avoid misleading per-packet error log
2026-01-14 16:30 [PATCH net v2] amd-xgbe: avoid misleading per-packet error log Raju Rangoju
@ 2026-01-19 14:18 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-01-19 14:18 UTC (permalink / raw)
To: Rangoju, Raju
Cc: netdev, pabeni, kuba, edumazet, davem, andrew+netdev,
Thomas.Lendacky, Shyam-sundar.S-k
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 14 Jan 2026 22:00:37 +0530 you wrote:
> On the receive path, packet can be damaged because of buffer
> overflow in Rx FIFO. Avoid misleading per-packet error log when
> packet->errors is set, this can flood the log. Instead, rely on the
> standard rtnl_link_stats64 stats.
>
> Fixes: c5aa9e3b8156 ("amd-xgbe: Initial AMD 10GbE platform driver")
> Signed-off-by: Raju Rangoju <Raju.Rangoju@amd.com>
>
> [...]
Here is the summary with links:
- [net,v2] amd-xgbe: avoid misleading per-packet error log
https://git.kernel.org/netdev/net/c/c158f985cf6c
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-01-19 14:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-14 16:30 [PATCH net v2] amd-xgbe: avoid misleading per-packet error log Raju Rangoju
2026-01-19 14:18 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox