[dpdk-dev] [PATCH] net/mlx5: fix use of wrong compilation directive

Slava Ovsiienko viacheslavo at mellanox.com
Sun Oct 27 17:04:00 CET 2019


> -----Original Message-----
> From: Dekel Peled <dekelp at mellanox.com>
> Sent: Sunday, October 27, 2019 17:33
> To: Matan Azrad <matan at mellanox.com>; Slava Ovsiienko
> <viacheslavo at mellanox.com>; Shahaf Shuler <shahafs at mellanox.com>
> Cc: Ori Kam <orika at mellanox.com>; dev at dpdk.org; stable at dpdk.org
> Subject: [PATCH] net/mlx5: fix use of wrong compilation directive
> 
> Glue function mlx5_glue_devx_qp_query() uses wrong directive
> HAVE_IBV_DEVX_ASYNC by mistake.
> This patch replaces the directive to HAVE_IBV_DEVX_OBJ, as required.
> 
> Fixes: 62d6f70f30f4 ("net/mlx5: add glue for queue query via DevX")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Dekel Peled <dekelp at mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo at mellanox.com>

> ---
>  drivers/net/mlx5/mlx5_glue.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/mlx5/mlx5_glue.c b/drivers/net/mlx5/mlx5_glue.c
> index b5aab52..58c9a82 100644
> --- a/drivers/net/mlx5/mlx5_glue.c
> +++ b/drivers/net/mlx5/mlx5_glue.c
> @@ -976,7 +976,7 @@
>  			const void *in, size_t inlen,
>  			void *out, size_t outlen)
>  {
> -#ifdef HAVE_IBV_DEVX_ASYNC
> +#ifdef HAVE_IBV_DEVX_OBJ
>  	return mlx5dv_devx_qp_query(qp, in, inlen, out, outlen);  #else
>  	(void)qp;
> --
> 1.8.3.1



More information about the dev mailing list