Skip to contentSkip to conversation

gve: report 64bit tx_bytes counter from gve_handle_report_stats()

PATCH Applied Eric Dumazet 2 participants 2 messages Oct 6, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gve: report 64bit tx_bytes counter from gve_handle_report_stats()

From: Eric Dumazet <[email protected]>

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 24aeb56f2d38 ("gve: Add Gvnic stats AQ command and ethtool show/set-priv-flags.")
Cc Yangchun Fu <[email protected]>
Cc Kuo Zhao <[email protected]>
Cc David Awogbemila <[email protected]>
---
 drivers/net/ethernet/google/gve/gve_main.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/net/ethernet/google/gve/gve_main.c +3 -2
index 99837c9d2cba698ada900229330cb10bc1606a6b..fc7cdf934ddc6cb336a86ef05b1a4fcdf73cb69a 100644
@@ -1190,9 +1190,10 @@ static void gve_handle_reset(struct gve_priv *priv)
 
 void gve_handle_report_stats(struct gve_priv *priv)
 {
-	int idx, stats_idx = 0, tx_bytes;
-	unsigned int start = 0;
 	struct stats *stats = priv->stats_report->stats;
+	int idx, stats_idx = 0;
+	unsigned int start = 0;
+	u64 tx_bytes;
 
 	if (!gve_get_report_stats(priv))
 		return;
Signature · 1 line
2.33.0.800.g4c38ced690-goog
#1 lore raw
This patch was applied to netdev/net.git (refs/heads/master):

Hello:

This patch was applied to netdev/net.git (refs/heads/master):

Quoted 6 lines · On Tue, 5 Oct 2021 18:01:38 -0700 you wrote:

From: Eric Dumazet <[email protected]>

Each tx queue maintains a 64bit counter for bytes, there is no reason to truncate this to 32bit (or this has not been documented)

Quoted 7 lines
Fixes 24aeb56f2d38 ("gve: Add Gvnic stats AQ command and ethtool show/set-priv-flags.")
Cc Yangchun Fu <[email protected]>
Cc Kuo Zhao <[email protected]>
Cc David Awogbemila <[email protected]>

[...]

Here is the summary with links:
- [net] gve: report 64bit tx_bytes counter from gve_handle_report_stats()

    https://git.kernel.org/netdev/net/c/17c37d748f2b

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html