MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ena_xstats_calc_num

Function ena_xstats_calc_num

dpdk/drivers/net/ena/ena_ethdev.c:810–819  ·  view source on GitHub ↗

This function calculates the number of xstats based on the current config */

Source from the content-addressed store, hash-verified

808
809/* This function calculates the number of xstats based on the current config */
810static 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
821static void ena_config_debug_area(struct ena_adapter *adapter)
822{

Callers 4

ena_config_debug_areaFunction · 0.85
ena_xstats_get_namesFunction · 0.85
ena_xstats_getFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected