Skip to content

Commit 31f1b55

Browse files
Shradha GuptaPaolo Abeni
authored andcommitted
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. Cc: [email protected] Fixes: e1df520 ("net :mana :Add remaining GDMA stats for MANA to ethtool") Signed-off-by: Shradha Gupta <[email protected]> Reviewed-by: Haiyang Zhang <[email protected]> Link: https://patch.msgid.link/1733291300-12593-1-git-send-email-shradhagupta@linux.microsoft.com Signed-off-by: Paolo Abeni <[email protected]>
1 parent 750e516 commit 31f1b55

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/microsoft/mana/mana_en.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2536,6 +2536,7 @@ void mana_query_gf_stats(struct mana_port_context *apc)
25362536

25372537
mana_gd_init_req_hdr(&req.hdr, MANA_QUERY_GF_STAT,
25382538
sizeof(req), sizeof(resp));
2539+
req.hdr.resp.msg_version = GDMA_MESSAGE_V2;
25392540
req.req_stats = STATISTICS_FLAGS_RX_DISCARDS_NO_WQE |
25402541
STATISTICS_FLAGS_RX_ERRORS_VPORT_DISABLED |
25412542
STATISTICS_FLAGS_HC_RX_BYTES |

0 commit comments

Comments
 (0)