Skip to content

gve: Stats reporting fixes

Harshitha Ramamurthy bpf lkml netdev stable 1 version Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2gve: Fix stats report corruption on queue count changedrivers/net/ethernet/google/gve/gve_ethtool.c drivers/net/ethernet/google/gve/gve_main.c+36 -221 replyApplied
2/2gve: Correct ethtool rx_dropped calculationdrivers/net/ethernet/google/gve/gve_ethtool.c+17 -61 replyApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJoshua WashingtonJordan RheeMatt OlsonJacob Keller
1/2R-b R-b
2/2R-b R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH net 0/2] gve: Stats reporting fixes

From: Max Yuan <[email protected]>

This series addresses two issues related to statistics in the gve driver.

The first patch fixes a memory corruption issue that occurs when resizing the stats region during queue count changes. By allocating the maximum possible size upfront and aligning offset calculations with the NIC, we ensure stability and accuracy across reconfigurations.

The second patch fixes the 'rx_dropped' counter by removing allocation failures and incorporating XDP transmit and redirect errors to provide a more accurate representation of dropped packets.

Debarghya Kundu (1):
gve: Fix stats report corruption on queue count change

Max Yuan (1):
gve: Correct ethtool rx_dropped calculation

 drivers/net/ethernet/google/gve/gve_ethtool.c | 77 ++++++++++++++++++++++++++--------------
 drivers/net/ethernet/google/gve/gve_main.c    |  4 +--
 2 files changed, 53 insertions(+), 28 deletions(-)
Signature · 1 line
2.53.0.rc1.225.gd81095ad13-goog