src/dpdk/drivers/net/mlx5/mlx5_rxq.c
int
mlx5_rx_intr_enable(struct rte_eth_dev *dev, uint16_t rx_queue_id)
{
	struct mlx5_rxq_ctrl *rxq_ctrl;

	rxq_ctrl = mlx5_rxq_get(dev, rx_queue_id);
	if (!rxq_ctrl)
		goto error;
	if (rxq_ctrl->irq) {
		if (!rxq_ctrl->obj) {
			mlx5_rxq_release(dev, rx_queue_id);
			goto error;
		}
		mlx5_arm_cq(&rxq_ctrl->rxq, rxq_ctrl->rxq.cq_arm_sn);
	}
	mlx5_rxq_release(dev, rx_queue_id);
	return 0;
error:
	rte_errno = EINVAL;
	return -rte_errno;
}
/**
 * DPDK callback for Rx queue interrupt enable.
 *
 * @param dev
 *   Pointer to Ethernet device structure.
 * @param rx_queue_id
 *   Rx queue number.
 *
 * @return
 *   0 on success, a negative errno value otherwise and rte_errno is set.
 */
DPDK callback for Rx queue interrupt enable.
@param dev
Pointer to Ethernet device structure.
@param rx_queue_id
Rx queue number.

@return
0 on success, a negative errno value otherwise and rte_errno is set.
DPDK callback for Rx queue interrupt enable . @param dev Pointer to Ethernet device structure . @param rx_queue_id Rx queue number . @return 0 on success a negative errno value otherwise and rte_errno is set .
int
mlx5_rx_intr_enable(struct rte_eth_dev *dev, uint16_t rx_queue_id)
{
	struct mlx5_rxq_ctrl *rxq_ctrl;
	rxq_ctrl = mlx5_rxq_get(dev, rx_queue_id);
	if (!rxq_ctrl)
		goto error;
	if (rxq_ctrl->irq) {
		if (!rxq_ctrl->obj) {
			mlx5_rxq_release(dev, rx_queue_id);
			goto error;
		}
		mlx5_arm_cq(&rxq_ctrl->rxq, rxq_ctrl->rxq.cq_arm_sn);
	}
	mlx5_rxq_release(dev, rx_queue_id);
	return 0;
error:
	rte_errno = EINVAL;
	return -rte_errno;
}
int mlx5_rx_intr_enable ( struct rte_eth_dev * dev , uint16_t rx_queue_id ) { struct mlx5_rxq_ctrl * rxq_ctrl ; rxq_ctrl = mlx5_rxq_get ( dev , rx_queue_id ) ; if ( ! rxq_ctrl ) goto error ; if ( rxq_ctrl -> irq ) { if ( ! rxq_ctrl -> obj ) { mlx5_rxq_release ( dev , rx_queue_id ) ; goto error ; } mlx5_arm_cq ( & rxq_ctrl -> rxq , rxq_ctrl -> rxq . cq_arm_sn ) ; } mlx5_rxq_release ( dev , rx_queue_id ) ; return 0 ; error : rte_errno = EINVAL ; return - rte_errno ; }
DPDK callback for Rx queue interrupt enable.
DPDK callback for Rx queue interrupt enable .