This function calculates the number of xstats based on the current config */
| 808 | |
| 809 | /* This function calculates the number of xstats based on the current config */ |
| 810 | static unsigned int ena_xstats_calc_num(struct rte_eth_dev_data *data) |
| 811 | { |
| 812 | struct ena_adapter *adapter = data->dev_private; |
| 813 | |
| 814 | return ENA_STATS_ARRAY_GLOBAL + |
| 815 | adapter->metrics_num + |
| 816 | ENA_STATS_ARRAY_ENA_SRD + |
| 817 | (data->nb_tx_queues * ENA_STATS_ARRAY_TX) + |
| 818 | (data->nb_rx_queues * ENA_STATS_ARRAY_RX); |
| 819 | } |
| 820 | |
| 821 | static void ena_config_debug_area(struct ena_adapter *adapter) |
| 822 | { |
no outgoing calls
no test coverage detected