Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Joe Damato
Wed, 25 Nov 2026 18:56
Re: [PATCH net-next] gve: add rx_critical_low_bufs ethtool statistic
Author: Joe Damato
Date: Wed, 25 Nov 2026 18:56
Date: Wed, 25 Nov 2026 18:56
31 lines
13512 bytes
13512 bytes
On Tue, Nov 24, 2026 at 02:30:09PM -0800, Joshua Washington wrote:
> From: Eddie Phillips <eddiephillips@google.com>
>
> Commit b65352a1bac6 ("gve: fix Rx queue stall on alloc failure") added a
> starvation recovery timer to the DQO Rx path to prevent permanent queue
> stalls under severe memory pressure.
>
> Existing allocation failure counters (such as rx_buf_alloc_fail and
> netdev queue alloc_fail) count every individual failed buffer allocation
> and do not distinguish transient, recoverable failures from severe
> buffer exhaustion where fewer than GVE_RX_BUF_THRESH_DQO (32) buffers
> remain available to hardware and starvation recovery is required.
>
> Add a new "rx_critical_low_bufs" ethtool statistic for the DQO Rx path
> in gve_rx_post_buffers_dqo(). The counter increments on each refill
> attempt that leaves fewer than GVE_RX_BUF_THRESH_DQO buffers available
> to hardware and arms or reschedules the starvation recovery timer via
> mod_timer(). It is exposed both per-queue (rx_critical_low_bufs[%u]) and
> as an interface-wide aggregate (rx_critical_low_bufs).
>
> Signed-off-by: Eddie Phillips <eddiephillips@google.com>
> Signed-off-by: Jordan Rhee <jordanrhee@google.com>
> Signed-off-by: Joshua Washington <joshwash@google.com>
> ---
> drivers/net/ethernet/google/gve/gve.h | 1 +
> drivers/net/ethernet/google/gve/gve_ethtool.c | 17 ++++++++++++++---
> drivers/net/ethernet/google/gve/gve_rx_dqo.c | 3 +++
> 3 files changed, 18 insertions(+), 3 deletions(-)
Reviewed-by: Joe Damato <joe@dama.to>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads