Skip to content

Commit f41a94a

Browse files
aloktiwaPaolo Abeni
authored andcommitted
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: 24aeb56 ("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>
1 parent eb7fd7a commit f41a94a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/google/gve/gve_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2153,7 +2153,7 @@ void gve_handle_report_stats(struct gve_priv *priv)
21532153
};
21542154
stats[stats_idx++] = (struct stats) {
21552155
.stat_name = cpu_to_be32(RX_BUFFERS_POSTED),
2156-
.value = cpu_to_be64(priv->rx[0].fill_cnt),
2156+
.value = cpu_to_be64(priv->rx[idx].fill_cnt),
21572157
.queue_id = cpu_to_be32(idx),
21582158
};
21592159
}

0 commit comments

Comments
 (0)