]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gve: Fix RX_BUFFERS_POSTED stat to report per-queue fill_cnt
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Tue, 27 May 2025 13:08:16 +0000 (06:08 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 29 May 2025 09:03:11 +0000 (11:03 +0200)
commitf41a94aade120dc60322865f363cee7865f2df01
tree57bb2b0c711054bf612e61b2bc902913e852caef
parenteb7fd7aa35bfcc1e1fda4ecc42ccfcb526cdc780
gve: Fix RX_BUFFERS_POSTED stat to report per-queue fill_cnt

Previously, the RX_BUFFERS_POSTED stat incorrectly reported the
fill_cnt from RX queue 0 for all queues, resulting in inaccurate
per-queue statistics.
Fix this by correctly indexing priv->rx[idx].fill_cnt for each RX queue.

Fixes: 24aeb56f2d38 ("gve: Add Gvnic stats AQ command and ethtool show/set-priv-flags.")
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Link: https://patch.msgid.link/20250527130830.1812903-1-alok.a.tiwari@oracle.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/google/gve/gve_main.c