1 /* SPDX-License-Identifier: BSD-3-Clause
3 * Copyright(c) 2021 Xilinx, Inc.
5 #ifndef _SFC_SW_STATS_H
6 #define _SFC_SW_STATS_H
16 void sfc_sw_xstats_get_vals(struct sfc_adapter *sa,
17 struct rte_eth_xstat *xstats,
18 unsigned int xstats_count, unsigned int *nb_written,
19 unsigned int *nb_supported);
21 int sfc_sw_xstats_get_names(struct sfc_adapter *sa,
22 struct rte_eth_xstat_name *xstats_names,
23 unsigned int xstats_count, unsigned int *nb_written,
24 unsigned int *nb_supported);
26 void sfc_sw_xstats_get_vals_by_id(struct sfc_adapter *sa, const uint64_t *ids,
27 uint64_t *values, unsigned int n,
28 unsigned int *nb_supported);
30 int sfc_sw_xstats_get_names_by_id(struct sfc_adapter *sa, const uint64_t *ids,
31 struct rte_eth_xstat_name *xstats_names,
33 unsigned int *nb_supported);
35 unsigned int sfc_sw_xstats_get_nb_supported(struct sfc_adapter *sa);
37 int sfc_sw_xstats_configure(struct sfc_adapter *sa);
39 void sfc_sw_xstats_reset(struct sfc_adapter *sa);
41 int sfc_sw_xstats_init(struct sfc_adapter *sa);
43 void sfc_sw_xstats_close(struct sfc_adapter *sa);
49 #endif /* _SFC_SW_STATS_H */