src/dpdk/drivers/net/ena/ena_ethdev.c
static unsigned int ena_xstats_calc_num(struct rte_eth_dev *dev)
{
	return ENA_STATS_ARRAY_GLOBAL + ENA_STATS_ARRAY_ENI +
		(dev->data->nb_tx_queues * ENA_STATS_ARRAY_TX) +
		(dev->data->nb_rx_queues * ENA_STATS_ARRAY_RX);
}
/* This function calculates the number of xstats based on the current config */
This function calculates the number of xstats based on the current config
This function calculates the number of xstats based on the current config
static unsigned int ena_xstats_calc_num(struct rte_eth_dev *dev)
{
	return ENA_STATS_ARRAY_GLOBAL + ENA_STATS_ARRAY_ENI +
		(dev->data->nb_tx_queues * ENA_STATS_ARRAY_TX) +
		(dev->data->nb_rx_queues * ENA_STATS_ARRAY_RX);
}
static unsigned int ena_xstats_calc_num ( struct rte_eth_dev * dev ) { return ENA_STATS_ARRAY_GLOBAL + ENA_STATS_ARRAY_ENI + ( dev -> data -> nb_tx_queues * ENA_STATS_ARRAY_TX ) + ( dev -> data -> nb_rx_queues * ENA_STATS_ARRAY_RX ) ; }
This function calculates the number of xstats based on the current config
This function calculates the number of xstats based on the current config