src/dpdk/drivers/net/hns3/hns3_rxtx.c
void
hns3_dev_all_rx_queue_intr_enable(struct hns3_hw *hw, bool en)
{
	struct rte_eth_dev *dev = &rte_eth_devices[hw->data->port_id];
	uint16_t nb_rx_q = hw->data->nb_rx_queues;
	int i;

	if (dev->data->dev_conf.intr_conf.rxq == 0)
		return;

	for (i = 0; i < nb_rx_q; i++)
		hns3_queue_intr_enable(hw, i, en);
}
/*
 * Enable all rx queue interrupt when in interrupt rx mode.
 * This api was called before enable queue rx&tx (in normal start or reset
 * recover scenes), used to fix hardware rx queue interrupt enable was clear
 * when FLR.
 */
Enable all rx queue interrupt when in interrupt rx mode.
This api was called before enable queue rx&tx (in normal start or reset
recover scenes), used to fix hardware rx queue interrupt enable was clear
when FLR.
Enable all rx queue interrupt when in interrupt rx mode . This api was called before enable queue rx&tx ( in normal start or reset recover scenes ) used to fix hardware rx queue interrupt enable was clear when FLR .
void
hns3_dev_all_rx_queue_intr_enable(struct hns3_hw *hw, bool en)
{
	struct rte_eth_dev *dev = &rte_eth_devices[hw->data->port_id];
	uint16_t nb_rx_q = hw->data->nb_rx_queues;
	int i;
	if (dev->data->dev_conf.intr_conf.rxq == 0)
		return;
	for (i = 0; i < nb_rx_q; i++)
		hns3_queue_intr_enable(hw, i, en);
}
void hns3_dev_all_rx_queue_intr_enable ( struct hns3_hw * hw , bool en ) { struct rte_eth_dev * dev = & rte_eth_devices [ hw -> data -> port_id ] ; uint16_t nb_rx_q = hw -> data -> nb_rx_queues ; int i ; if ( dev -> data -> dev_conf . intr_conf . rxq == 0 ) return ; for ( i = 0 ; i < nb_rx_q ; i ++ ) hns3_queue_intr_enable ( hw , i , en ) ; }
Enable all rx queue interrupt when in interrupt rx mode.
Enable all rx queue interrupt when in interrupt rx mode .