Skip to content

Commit ca6b1a7

Browse files
committed
net :mana :Request a V2 response version for MANA_QUERY_GF_STAT
jira NONE_AUTOMATION Rebuild_History Non-Buildable kernel-5.14.0-570.16.1.el9_6 commit-author Shradha Gupta <[email protected]> commit 31f1b55 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]> (cherry picked from commit 31f1b55) Signed-off-by: Jonathan Maple <[email protected]>
1 parent 9f19c66 commit ca6b1a7

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
@@ -2428,6 +2428,7 @@ void mana_query_gf_stats(struct mana_port_context *apc)
24282428

24292429
mana_gd_init_req_hdr(&req.hdr, MANA_QUERY_GF_STAT,
24302430
sizeof(req), sizeof(resp));
2431+
req.hdr.resp.msg_version = GDMA_MESSAGE_V2;
24312432
req.req_stats = STATISTICS_FLAGS_RX_DISCARDS_NO_WQE |
24322433
STATISTICS_FLAGS_RX_ERRORS_VPORT_DISABLED |
24332434
STATISTICS_FLAGS_HC_RX_BYTES |

0 commit comments

Comments
 (0)