net/mlx5: support inline send
[dpdk.git] / drivers / net / mlx5 / mlx5_txq.c
index 7b2dc7c..6a4a96e 100644 (file)
@@ -332,6 +332,10 @@ txq_ctrl_setup(struct rte_eth_dev *dev, struct txq_ctrl *txq_ctrl,
                .comp_mask = (IBV_EXP_QP_INIT_ATTR_PD |
                              IBV_EXP_QP_INIT_ATTR_RES_DOMAIN),
        };
+       if (priv->txq_inline && priv->txqs_n >= priv->txqs_inline) {
+               tmpl.txq.max_inline = priv->txq_inline;
+               attr.init.cap.max_inline_data = tmpl.txq.max_inline;
+       }
        tmpl.qp = ibv_exp_create_qp(priv->ctx, &attr.init);
        if (tmpl.qp == NULL) {
                ret = (errno ? errno : EINVAL);