From: Viacheslav Ovsiienko Date: Wed, 10 Nov 2021 13:05:52 +0000 (+0200) Subject: net/mlx5: fix Tx scheduling check X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=11cfe349b3f17b11b6dce109f5226e89bc0a5b85;p=dpdk.git net/mlx5: fix Tx scheduling check There was a redundant check for the enabled E-Switch, this resulted in device probing failure if the Tx scheduling was requested and E-Switch was enabled. Fixes: f17e4b4ffef9 ("net/mlx5: add Tx scheduling check on queue creation") Cc: stable@dpdk.org Signed-off-by: Viacheslav Ovsiienko --- diff --git a/drivers/net/mlx5/linux/mlx5_os.c b/drivers/net/mlx5/linux/mlx5_os.c index de880ee4c9..c29fe3d92b 100644 --- a/drivers/net/mlx5/linux/mlx5_os.c +++ b/drivers/net/mlx5/linux/mlx5_os.c @@ -1727,8 +1727,7 @@ err_secondary: priv->obj_ops = ibv_obj_ops; } if (config->tx_pp && - (priv->config.dv_esw_en || - priv->obj_ops.txq_obj_new != mlx5_txq_devx_obj_new)) { + priv->obj_ops.txq_obj_new != mlx5_txq_devx_obj_new) { /* * HAVE_MLX5DV_DEVX_UAR_OFFSET is required to support * packet pacing and already checked above.