Skip to contentSkip to conversation

net/mlx5: fix query missed Rx packet stats

PATCH In review Viacheslav Ovsiienko 2 participants 2 messages Apr 28, 2021 – May 9, 2021 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/mlx5: fix query missed Rx packet stats

There was a typo - the device context was wrongly provided instead of counter's one for the DevX query operation.

Fixes e6988afdc75a ("net/mlx5: fix imissed statistics")
---
 drivers/net/mlx5/linux/mlx5_os.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/mlx5/linux/mlx5_os.c +2 -2
index 41622c1bf7..e461f9461a 100644
@@ -2682,8 +2682,8 @@ mlx5_os_read_dev_stat(struct mlx5_priv *priv, const char *ctr_name,
 	if (priv->sh) {
 		if (priv->q_counters != NULL &&
 		    strcmp(ctr_name, "out_of_buffer") == 0)
-			return mlx5_devx_cmd_queue_counter_query(priv->sh->ctx,
-							   0, (uint32_t *)stat);
+			return mlx5_devx_cmd_queue_counter_query
+					(priv->q_counters, 0, (uint32_t *)stat);
 		MKSTR(path, "%s/ports/%d/hw_counters/%s",
 		      priv->sh->ibdev_path,
 		      priv->dev_port,
Signature · 1 line
2.18.1
#1 lore raw

Hi,

Quoted 11 lines

-----Original Message-----
From: Slava Ovsiienko <[email protected]>
Sent: Wednesday, April 28, 2021 12:32 PM
To: [email protected]
Cc: Raslan Darawsheh <[email protected]>; Matan Azrad <[email protected]>
Subject: [PATCH] net/mlx5: fix query missed Rx packet stats

There was a typo - the device context was wrongly provided instead of counter's one for the DevX query operation.

Quoted 6 lines
Fixes e6988afdc75a ("net/mlx5: fix imissed statistics")
---
 drivers/net/mlx5/linux/mlx5_os.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh