src/dpdk/drivers/net/i40e/i40e_ethdev.c
int
i40e_pf_calc_configured_queues_num(struct i40e_pf *pf)
{
	struct rte_eth_dev_data *data = pf->dev_data;
	int i, num;
	struct i40e_rx_queue *rxq;

	num = 0;
	for (i = 0; i < pf->lan_nb_qps; i++) {
		rxq = data->rx_queues[i];
		if (rxq && rxq->q_set)
			num++;
		else
			break;
	}

	return num;
}
/* Calculate the maximum number of contiguous PF queues that are configured */
Calculate the maximum number of contiguous PF queues that are configured
Calculate the maximum number of contiguous PF queues that are configured
int
i40e_pf_calc_configured_queues_num(struct i40e_pf *pf)
{
	struct rte_eth_dev_data *data = pf->dev_data;
	int i, num;
	struct i40e_rx_queue *rxq;
	num = 0;
	for (i = 0; i < pf->lan_nb_qps; i++) {
		rxq = data->rx_queues[i];
		if (rxq && rxq->q_set)
			num++;
		else
			break;
	}
	return num;
}
int i40e_pf_calc_configured_queues_num ( struct i40e_pf * pf ) { struct rte_eth_dev_data * data = pf -> dev_data ; int i , num ; struct i40e_rx_queue * rxq ; num = 0 ; for ( i = 0 ; i < pf -> lan_nb_qps ; i ++ ) { rxq = data -> rx_queues [ i ] ; if ( rxq && rxq -> q_set ) num ++ ; else break ; } return num ; }
Calculate the maximum number of contiguous PF queues that are configured
Calculate the maximum number of contiguous PF queues that are configured