Home
last modified time | relevance | path

Searched refs:cnt_stats (Results 1 – 3 of 3) sorted by relevance

/f-stack/dpdk/lib/librte_metrics/
H A Drte_metrics.c52 uint16_t cnt_stats; member
153 stats->cnt_stats += cnt_names; in rte_metrics_reg_names()
193 if (key >= stats->cnt_stats) { in rte_metrics_update_values()
244 if (capacity < stats->cnt_stats) { in rte_metrics_get_names()
245 return_value = stats->cnt_stats; in rte_metrics_get_names()
254 return_value = stats->cnt_stats; in rte_metrics_get_names()
282 if (capacity < stats->cnt_stats) { in rte_metrics_get_values()
283 return_value = stats->cnt_stats; in rte_metrics_get_values()
289 idx_name < stats->cnt_stats; in rte_metrics_get_values()
297 idx_name < stats->cnt_stats; in rte_metrics_get_values()
[all …]
/f-stack/dpdk/drivers/net/hns3/
H A Dhns3_stats.c828 int cnt_stats = hns3_xstats_calc_num(dev); in hns3_dev_xstats_get_names() local
833 return cnt_stats; in hns3_dev_xstats_get_names()
936 if (ids == NULL || size < cnt_stats) in hns3_dev_xstats_get_by_id()
937 return cnt_stats; in hns3_dev_xstats_get_by_id()
946 len = cnt_stats * sizeof(struct rte_eth_xstat); in hns3_dev_xstats_get_by_id()
955 if (count_value != cnt_stats) { in hns3_dev_xstats_get_by_id()
961 if (ids[i] >= cnt_stats) { in hns3_dev_xstats_get_by_id()
963 "should < %u", i, ids[i], cnt_stats); in hns3_dev_xstats_get_by_id()
1009 return cnt_stats; in hns3_dev_xstats_get_names_by_id()
1022 if (ids[i] >= cnt_stats) { in hns3_dev_xstats_get_names_by_id()
[all …]
/f-stack/dpdk/drivers/net/ixgbe/
H A Dixgbe_ethdev.c3372 const unsigned cnt_stats = ixgbe_xstats_calc_num(); in ixgbe_dev_xstats_get_names() local
3420 return cnt_stats; in ixgbe_dev_xstats_get_names()
3430 const unsigned int cnt_stats = ixgbe_xstats_calc_num(); in ixgbe_dev_xstats_get_names_by_id() local
3478 return cnt_stats; in ixgbe_dev_xstats_get_names_by_id()