[PATCH] net/mlx5/linux: fix missed Rx packet stats
Xueming(Steven) Li
xuemingl at nvidia.com
Fri Aug 12 09:26:21 CEST 2022
I know this patch targets 20.11 LTS, applied and thanks!
Please ping other maintainers if you want this patch in another LTS version. Usually, maintainers care the email subject with [19.11] or [21.11] prefix.
> -----Original Message-----
> From: Slava Ovsiienko <viacheslavo at nvidia.com>
> Sent: Thursday, August 11, 2022 1:31 PM
> To: stable at dpdk.org
> Cc: bluca at debian.org; ktraynor at redhat.com; Xueming(Steven) Li <xuemingl at nvidia.com>
> Subject: [PATCH] net/mlx5/linux: fix missed Rx packet stats
>
> [ upstream commit 978a0303a3bf41598615a01392e6d4312101c3af ]
>
> 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")
> Cc: stable at dpdk.org
>
> Signed-off-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
> ---
> drivers/net/mlx5/linux/mlx5_os.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/mlx5/linux/mlx5_os.c b/drivers/net/mlx5/linux/mlx5_os.c
> index f98cf90dd8..8bd717e6a9 100644
> --- a/drivers/net/mlx5/linux/mlx5_os.c
> +++ b/drivers/net/mlx5/linux/mlx5_os.c
> @@ -2589,8 +2589,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,
> --
> 2.18.1
More information about the stable
mailing list