diff options
| author | Michal Kubiak <[email protected]> | 2025-08-08 15:53:10 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2025-08-25 16:45:23 +0000 |
| commit | b1a0c977c6f1130f7dd125ee3db8c2435d7e3d41 (patch) | |
| tree | 8c442b3b90056dd91d290e1a34b9211a1b816ad3 /drivers/net/ethernet/intel/ice/ice_txrx.c | |
| parent | ice: use fixed adapter index for E825C embedded devices (diff) | |
| download | kernel-b1a0c977c6f1130f7dd125ee3db8c2435d7e3d41.tar.gz kernel-b1a0c977c6f1130f7dd125ee3db8c2435d7e3d41.zip | |
ice: fix incorrect counter for buffer allocation failures
Currently, the driver increments `alloc_page_failed` when buffer allocation fails
in `ice_clean_rx_irq()`. However, this counter is intended for page allocation
failures, not buffer allocation issues.
This patch corrects the counter by incrementing `alloc_buf_failed` instead,
ensuring accurate statistics reporting for buffer allocation failures.
Fixes: 2fba7dc5157b ("ice: Add support for XDP multi-buffer on Rx side")
Reported-by: Jacob Keller <[email protected]>
Suggested-by: Paul Menzel <[email protected]>
Signed-off-by: Michal Kubiak <[email protected]>
Reviewed-by: Paul Menzel <[email protected]>
Reviewed-by: Jason Xing <[email protected]>
Reviewed-by: Aleksandr Loktionov <[email protected]>
Tested-by: Priya Singh <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_txrx.c')
| -rw-r--r-- | drivers/net/ethernet/intel/ice/ice_txrx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_txrx.c b/drivers/net/ethernet/intel/ice/ice_txrx.c index 29e0088ab6b2..d2871757ec94 100644 --- a/drivers/net/ethernet/intel/ice/ice_txrx.c +++ b/drivers/net/ethernet/intel/ice/ice_txrx.c @@ -1352,7 +1352,7 @@ construct_skb: skb = ice_construct_skb(rx_ring, xdp); /* exit if we failed to retrieve a buffer */ if (!skb) { - rx_ring->ring_stats->rx_stats.alloc_page_failed++; + rx_ring->ring_stats->rx_stats.alloc_buf_failed++; xdp_verdict = ICE_XDP_CONSUMED; } ice_put_rx_mbuf(rx_ring, xdp, &xdp_xmit, ntc, xdp_verdict); |
