net/mlx5: provide send scheduling error statistics
[dpdk.git] / drivers / net / mlx5 / mlx5_trigger.c
index ca25ad9..29aef54 100644 (file)
@@ -59,7 +59,9 @@ mlx5_txq_start(struct rte_eth_dev *dev)
                } else {
                        txq_alloc_elts(txq_ctrl);
                        txq_ctrl->obj = mlx5_txq_obj_new
-                               (dev, i, MLX5_TXQ_OBJ_TYPE_IBV);
+                               (dev, i, priv->txpp_en ?
+                               MLX5_TXQ_OBJ_TYPE_DEVX_SQ :
+                               MLX5_TXQ_OBJ_TYPE_IBV);
                }
                if (!txq_ctrl->obj) {
                        rte_errno = ENOMEM;
@@ -329,6 +331,8 @@ mlx5_dev_start(struct rte_eth_dev *dev)
        }
        /* Set a mask and offset of dynamic metadata flows into Rx queues*/
        mlx5_flow_rxq_dynf_metadata_set(dev);
+       /* Set a mask and offset of scheduling on timestamp into Tx queues*/
+       mlx5_txq_dynf_timestamp_set(dev);
        /*
         * In non-cached mode, it only needs to start the default mreg copy
         * action and no flow created by application exists anymore.