net/sfc: support MAC address edits in transfer flows
[dpdk.git] / drivers / net / sfc / sfc_sw_stats.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  *
3  * Copyright(c) 2021 Xilinx, Inc.
4  */
5 #ifndef _SFC_SW_STATS_H
6 #define _SFC_SW_STATS_H
7
8 #include <rte_dev.h>
9
10 #include "sfc.h"
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
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);
20
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);
25
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);
29
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,
32                                   unsigned int size,
33                                   unsigned int *nb_supported);
34
35 unsigned int sfc_sw_xstats_get_nb_supported(struct sfc_adapter *sa);
36
37 int sfc_sw_xstats_configure(struct sfc_adapter *sa);
38
39 void sfc_sw_xstats_reset(struct sfc_adapter *sa);
40
41 int sfc_sw_xstats_init(struct sfc_adapter *sa);
42
43 void sfc_sw_xstats_close(struct sfc_adapter *sa);
44
45 #ifdef __cplusplus
46 }
47 #endif
48
49 #endif  /* _SFC_SW_STATS_H */