Skip to content

Commit 17c37d7

Browse files
edumazetdavem330
authored andcommitted
gve: report 64bit tx_bytes counter from gve_handle_report_stats()
Each tx queue maintains a 64bit counter for bytes, there is no reason to truncate this to 32bit (or this has not been documented) Fixes: 24aeb56 ("gve: Add Gvnic stats AQ command and ethtool show/set-priv-flags.") Signed-off-by: Eric Dumazet <[email protected]> Cc: Yangchun Fu <[email protected]> Cc: Kuo Zhao <[email protected]> Cc: David Awogbemila <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2f57d49 commit 17c37d7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,9 +1197,10 @@ static void gve_handle_reset(struct gve_priv *priv)
11971197

11981198
void gve_handle_report_stats(struct gve_priv *priv)
11991199
{
1200-
int idx, stats_idx = 0, tx_bytes;
1201-
unsigned int start = 0;
12021200
struct stats *stats = priv->stats_report->stats;
1201+
int idx, stats_idx = 0;
1202+
unsigned int start = 0;
1203+
u64 tx_bytes;
12031204

12041205
if (!gve_get_report_stats(priv))
12051206
return;

0 commit comments

Comments
 (0)