[dpdk-dev] [PATCH] net/mlx5: fix assert in tx inline settings ajustment
Raslan Darawsheh
rasland at mellanox.com
Tue Nov 19 16:59:20 CET 2019
Hi,
> -----Original Message-----
> From: Viacheslav Ovsiienko <viacheslavo at mellanox.com>
> Sent: Tuesday, November 19, 2019 3:13 PM
> To: dev at dpdk.org
> Cc: Matan Azrad <matan at mellanox.com>; Raslan Darawsheh
> <rasland at mellanox.com>; Ori Kam <orika at mellanox.com>
> Subject: [PATCH] net/mlx5: fix assert in tx inline settings ajustment
>
> Assert condition is fixed to not alert for the case when multi-packet write is
> not supported/engaged at all.
>
> Fixes: b53cd86965a1 ("net/mlx5: adjust inline setting for large Tx queue
> sizes")
>
> Signed-off-by: Viacheslav Ovsiienko <viacheslavo at mellanox.com>
> ---
> drivers/net/mlx5/mlx5_txq.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c
> index a0d6164..47b1de8 100644
> --- a/drivers/net/mlx5/mlx5_txq.c
> +++ b/drivers/net/mlx5/mlx5_txq.c
> @@ -1210,7 +1210,8 @@ struct mlx5_txq_obj *
> assert(txq_ctrl->max_inline_data <= max_inline);
> assert(txq_ctrl->txq.inlen_mode <= max_inline);
> assert(txq_ctrl->txq.inlen_mode <= txq_ctrl->txq.inlen_send);
> - assert(txq_ctrl->txq.inlen_mode <= txq_ctrl->txq.inlen_empw);
> + assert(txq_ctrl->txq.inlen_mode <= txq_ctrl->txq.inlen_empw ||
> + !txq_ctrl->txq.inlen_empw);
> return 0;
> error:
> rte_errno = ENOMEM;
> --
> 1.8.3.1
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
More information about the dev
mailing list