src/dpdk/drivers/net/mlx5/linux/mlx5_verbs.c
static int
mlx5_ibv_modify_wq(struct mlx5_rxq_obj *rxq_obj, uint8_t type)
{
	struct ibv_wq_attr mod = {
		.attr_mask = IBV_WQ_ATTR_STATE,
		.wq_state = (enum ibv_wq_state)type,
	};

	return mlx5_glue->modify_wq(rxq_obj->wq, &mod);
}
/**
 * Modifies the attributes for the specified WQ.
 *
 * @param rxq_obj
 *   Verbs Rx queue object.
 * @param type
 *   Type of change queue state.
 *
 * @return
 *   0 on success, a negative errno value otherwise and rte_errno is set.
 */
Modifies the attributes for the specified WQ.
@param rxq_obj
Verbs Rx queue object.
@param type
Type of change queue state.

@return
0 on success, a negative errno value otherwise and rte_errno is set.
Modifies the attributes for the specified WQ . @param rxq_obj Verbs Rx queue object . @param type Type of change queue state . @return 0 on success a negative errno value otherwise and rte_errno is set .
static int
mlx5_ibv_modify_wq(struct mlx5_rxq_obj *rxq_obj, uint8_t type)
{
	struct ibv_wq_attr mod = {
		.attr_mask = IBV_WQ_ATTR_STATE,
		.wq_state = (enum ibv_wq_state)type,
	};
	return mlx5_glue->modify_wq(rxq_obj->wq, &mod);
}
static int mlx5_ibv_modify_wq ( struct mlx5_rxq_obj * rxq_obj , uint8_t type ) { struct ibv_wq_attr mod = { . attr_mask = IBV_WQ_ATTR_STATE , . wq_state = ( enum ibv_wq_state ) type , } ; return mlx5_glue -> modify_wq ( rxq_obj -> wq , & mod ) ; }
Modifies the attributes for the specified WQ.
Modifies the attributes for the specified WQ .