dev->data->dev_conf.rxmode.hw_ip_checksum),
.csum_l2tun = (priv->hw_csum_l2tun &&
dev->data->dev_conf.rxmode.hw_ip_checksum),
+ .l2tun_offload = priv->hw_csum_l2tun,
.stats = {
.idx = idx,
},
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);
}