src/dpdk/drivers/net/mlx5/linux/mlx5_os.c
static void
mlx5_os_txq_obj_release(struct mlx5_txq_obj *txq_obj)
{
	if (txq_obj->txq_ctrl->type == MLX5_TXQ_TYPE_HAIRPIN) {
		mlx5_txq_devx_obj_release(txq_obj);
		return;
	}
#ifdef HAVE_MLX5DV_DEVX_UAR_OFFSET
	if (!txq_obj->txq_ctrl->priv->config.dv_esw_en) {
		mlx5_txq_devx_obj_release(txq_obj);
		return;
	}
#endif
	mlx5_txq_ibv_obj_release(txq_obj);
}
/**
 * Release an Tx DevX/verbs queue object.
 *
 * @param txq_obj
 *   DevX/Verbs Tx queue object.
 */
Release an Tx DevX/verbs queue object.
Release an Tx DevX / verbs queue object .
static void
mlx5_os_txq_obj_release(struct mlx5_txq_obj *txq_obj)
{
	if (txq_obj->txq_ctrl->type == MLX5_TXQ_TYPE_HAIRPIN) {
		mlx5_txq_devx_obj_release(txq_obj);
		return;
	}
#ifdef HAVE_MLX5DV_DEVX_UAR_OFFSET
	if (!txq_obj->txq_ctrl->priv->config.dv_esw_en) {
		mlx5_txq_devx_obj_release(txq_obj);
		return;
	}
#endif
	mlx5_txq_ibv_obj_release(txq_obj);
}
static void mlx5_os_txq_obj_release ( struct mlx5_txq_obj * txq_obj ) { if ( txq_obj -> txq_ctrl -> type == MLX5_TXQ_TYPE_HAIRPIN ) { mlx5_txq_devx_obj_release ( txq_obj ) ; return ; } #ifdef HAVE_MLX5DV_DEVX_UAR_OFFSET if ( ! txq_obj -> txq_ctrl -> priv -> config . dv_esw_en ) { mlx5_txq_devx_obj_release ( txq_obj ) ; return ; } #endif mlx5_txq_ibv_obj_release ( txq_obj ) ; }
Release an Tx DevX/verbs queue object.
Release an Tx DevX / verbs queue object .