amd-xgbe: avoid misleading per-packet error log
Subsystems (3)
Raju Rangoju
maintainerPATCH v2 1/1 amd-xgbe: avoid misleading per-packet error log
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.
---
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(-)
drivers/net/ethernet/amd/xgbe/xgbe-drv.c +1 -4
@@ -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; }
Signature · 1 line
2.34.1
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 9 lines · 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->errorsis set, this can flood the log. Instead, rely on the standardrtnl_link_stats64stats.Fixes c5aa9e3b8156 ("amd-xgbe: Initial AMD 10GbE platform driver")Signed-off-by Raju Rangoju <[email protected]>[...]
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!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html