From: Max Yuan <maxyuan@google.com>
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(-)
--
2.53.0.rc1.225.gd81095ad13-goog