From: Michael Baum Date: Sun, 13 Sep 2020 19:05:21 +0000 (+0000) Subject: net/mlx5: fix Rx objects creator selection X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7aa9892f797f3b04c30e277adf5af8c8774493c8;p=dpdk.git net/mlx5: fix Rx objects creator selection There are 2 creators for Rx objects, DevX and Verbs. There are supported DR versions when a DevX destination TIR flow action creation cannot be supported, using this versions the TIR object should be created by Verbs, what forces all the Rx objects to be created by Verbs. The selection of the Rx objects creator, wrongly, didn't take into account the destination TIR action support what caused a failure in the Rx flows creation. Select Verbs creator when destination TIR action creation is not supported by the DR version. Fixes: 6deb19e1b2d2 ("net/mlx5: separate Rx queue object creations") Signed-off-by: Michael Baum Acked-by: Matan Azrad --- diff --git a/drivers/net/mlx5/linux/mlx5_os.c b/drivers/net/mlx5/linux/mlx5_os.c index 41db75e010..0511a55a28 100644 --- a/drivers/net/mlx5/linux/mlx5_os.c +++ b/drivers/net/mlx5/linux/mlx5_os.c @@ -1272,7 +1272,7 @@ err_secondary: goto error; } } - if (config->devx && config->dv_flow_en) { + if (config->devx && config->dv_flow_en && config->dest_tir) { priv->obj_ops = devx_obj_ops; priv->obj_ops.drop_action_create = ibv_obj_ops.drop_action_create;