Skip to contentSkip to conversation

net :mana :Request a V2 response version for MANA_QUERY_GF_STAT

PATCH Applied Shradha Gupta 3 participants 3 messages Dec 4, 2024 – Dec 5, 2024

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

PATCH 1/1 net :mana :Request a V2 response version for MANA_QUERY_GF_STAT

The current requested response version(V1) for MANA_QUERY_GF_STAT query results in STATISTICS_FLAGS_TX_ERRORS_GDMA_ERROR value being set to 0 always.
In order to get the correct value for this counter we request the response version to be V2.

Fixes e1df5202e879 ("net :mana :Add remaining GDMA stats for MANA to ethtool")
---
 drivers/net/ethernet/microsoft/mana/mana_en.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/microsoft/mana/mana_en.c +1 -0
index 57ac732e7707..f73848a4feb3 100644
@@ -2536,6 +2536,7 @@ void mana_query_gf_stats(struct mana_port_context *apc)
 
 	mana_gd_init_req_hdr(&req.hdr, MANA_QUERY_GF_STAT,
 			     sizeof(req), sizeof(resp));
+	req.hdr.resp.msg_version = GDMA_MESSAGE_V2;
 	req.req_stats = STATISTICS_FLAGS_RX_DISCARDS_NO_WQE |
 			STATISTICS_FLAGS_RX_ERRORS_VPORT_DISABLED |
 			STATISTICS_FLAGS_HC_RX_BYTES |
Signature · 1 line
2.43.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 26 lines

-----Original Message-----
From: Shradha Gupta <[email protected]>
Sent: Wednesday, December 4, 2024 12:48 AM
To: [email protected]; [email protected]; linux- [email protected]
Cc: Shradha Gupta <[email protected]>; KY Srinivasan <[email protected]>; Haiyang Zhang <[email protected]>; Wei Liu <[email protected]>; Dexuan Cui <[email protected]>; Andrew Lunn <[email protected]>; David S. Miller <[email protected]>; Eric Dumazet <[email protected]>; Jakub Kicinski <[email protected]>; Paolo Abeni <[email protected]>; Long Li <[email protected]>; Konstantin Taranov <[email protected]>; Souradeep Chakrabarti <[email protected]>; Erick Archer <[email protected]>; Shradha Gupta <[email protected]>; [email protected]
Subject: [PATCH net] net :mana :Request a V2 response version for MANA_QUERY_GF_STAT

The current requested response version(V1) for MANA_QUERY_GF_STAT query results in STATISTICS_FLAGS_TX_ERRORS_GDMA_ERROR value being set to 0 always.
In order to get the correct value for this counter we request the response version to be V2.

Quoted 4 lines
Fixes e1df5202e879 ("net :mana :Add remaining GDMA stats for MANA to

ethtool")

Thanks.

#2 lore raw
In reply to Shradha Gupta
This patch was applied to netdev/net.git (main) by Paolo Abeni <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <[email protected]>:

Quoted 11 lines · On Tue, 3 Dec 2024 21:48:20 -0800 you wrote:

The current requested response version(V1) for MANA_QUERY_GF_STAT query results in STATISTICS_FLAGS_TX_ERRORS_GDMA_ERROR value being set to 0 always.
In order to get the correct value for this counter we request the response version to be V2.

Fixes e1df5202e879 ("net :mana :Add remaining GDMA stats for MANA to ethtool")

[...]

Here is the summary with links:
- [net] net :mana :Request a V2 response version for MANA_QUERY_GF_STAT

    https://git.kernel.org/netdev/net/c/31f1b55d5d7e

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html