src/dpdk/drivers/net/mlx5/mlx5_devx.c
static void
mlx5_rxq_devx_obj_release(struct mlx5_rxq_obj *rxq_obj)
{
	MLX5_ASSERT(rxq_obj);
	if (rxq_obj->rxq_ctrl->type == MLX5_RXQ_TYPE_HAIRPIN) {
		MLX5_ASSERT(rxq_obj->rq);
		mlx5_devx_modify_rq(rxq_obj, MLX5_RXQ_MOD_RDY2RST);
		claim_zero(mlx5_devx_cmd_destroy(rxq_obj->rq));
	} else {
		MLX5_ASSERT(rxq_obj->cq_obj.cq);
		MLX5_ASSERT(rxq_obj->rq_obj.rq);
		mlx5_rxq_release_devx_resources(rxq_obj);
		if (rxq_obj->devx_channel)
			mlx5_os_devx_destroy_event_channel
							(rxq_obj->devx_channel);
	}
}
/**
 * Release an Rx DevX queue object.
 *
 * @param rxq_obj
 *   DevX Rx queue object.
 */
Release an Rx DevX queue object.
Release an Rx DevX queue object .
static void
mlx5_rxq_devx_obj_release(struct mlx5_rxq_obj *rxq_obj)
{
	MLX5_ASSERT(rxq_obj);
	if (rxq_obj->rxq_ctrl->type == MLX5_RXQ_TYPE_HAIRPIN) {
		MLX5_ASSERT(rxq_obj->rq);
		mlx5_devx_modify_rq(rxq_obj, MLX5_RXQ_MOD_RDY2RST);
		claim_zero(mlx5_devx_cmd_destroy(rxq_obj->rq));
	} else {
		MLX5_ASSERT(rxq_obj->cq_obj.cq);
		MLX5_ASSERT(rxq_obj->rq_obj.rq);
		mlx5_rxq_release_devx_resources(rxq_obj);
		if (rxq_obj->devx_channel)
			mlx5_os_devx_destroy_event_channel
							(rxq_obj->devx_channel);
	}
}
static void mlx5_rxq_devx_obj_release ( struct mlx5_rxq_obj * rxq_obj ) { MLX5_ASSERT ( rxq_obj ) ; if ( rxq_obj -> rxq_ctrl -> type == MLX5_RXQ_TYPE_HAIRPIN ) { MLX5_ASSERT ( rxq_obj -> rq ) ; mlx5_devx_modify_rq ( rxq_obj , MLX5_RXQ_MOD_RDY2RST ) ; claim_zero ( mlx5_devx_cmd_destroy ( rxq_obj -> rq ) ) ; } else { MLX5_ASSERT ( rxq_obj -> cq_obj . cq ) ; MLX5_ASSERT ( rxq_obj -> rq_obj . rq ) ; mlx5_rxq_release_devx_resources ( rxq_obj ) ; if ( rxq_obj -> devx_channel ) mlx5_os_devx_destroy_event_channel ( rxq_obj -> devx_channel ) ; } }
Release an Rx DevX queue object.
Release an Rx DevX queue object .