goto error;
}
/* Use the entire Rx mempool as the memory region. */
- rxq->mr = mlx4_mp2mr(priv->pd, mp);
+ rxq->mr = mlx4_mr_get(priv, mp);
if (!rxq->mr) {
- rte_errno = EINVAL;
ERROR("%p: MR creation failure: %s",
(void *)dev, strerror(rte_errno));
goto error;
if (rxq->channel)
claim_zero(ibv_destroy_comp_channel(rxq->channel));
if (rxq->mr)
- claim_zero(ibv_dereg_mr(rxq->mr));
+ mlx4_mr_put(rxq->mr);
rte_free(rxq);
}