Make rte_driver opaque for non internal users. This will make extending this object possible without breaking the ABI. Introduce a new driver header and move rte_driver definition. Update drivers and library to use the internal header. Some applications may have been dereferencing rte_driver objects, mark this object's accessors as stable. Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Jay Jayatheerthan <jay.jayatheerthan@intel.com> Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Acked-by: Akhil Goyal <gakhil@marvell.com> Acked-by: Abhinandan Gujjar <abhinandan.gujjar@intel.com>
50 lines
1.2 KiB
C
50 lines
1.2 KiB
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
*
|
|
* Copyright(c) 2021 Xilinx, Inc.
|
|
*/
|
|
#ifndef _SFC_SW_STATS_H
|
|
#define _SFC_SW_STATS_H
|
|
|
|
#include <dev_driver.h>
|
|
|
|
#include "sfc.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void sfc_sw_xstats_get_vals(struct sfc_adapter *sa,
|
|
struct rte_eth_xstat *xstats,
|
|
unsigned int xstats_count, unsigned int *nb_written,
|
|
unsigned int *nb_supported);
|
|
|
|
int sfc_sw_xstats_get_names(struct sfc_adapter *sa,
|
|
struct rte_eth_xstat_name *xstats_names,
|
|
unsigned int xstats_count, unsigned int *nb_written,
|
|
unsigned int *nb_supported);
|
|
|
|
void sfc_sw_xstats_get_vals_by_id(struct sfc_adapter *sa, const uint64_t *ids,
|
|
uint64_t *values, unsigned int n,
|
|
unsigned int *nb_supported);
|
|
|
|
int sfc_sw_xstats_get_names_by_id(struct sfc_adapter *sa, const uint64_t *ids,
|
|
struct rte_eth_xstat_name *xstats_names,
|
|
unsigned int size,
|
|
unsigned int *nb_supported);
|
|
|
|
unsigned int sfc_sw_xstats_get_nb_supported(struct sfc_adapter *sa);
|
|
|
|
int sfc_sw_xstats_configure(struct sfc_adapter *sa);
|
|
|
|
void sfc_sw_xstats_reset(struct sfc_adapter *sa);
|
|
|
|
int sfc_sw_xstats_init(struct sfc_adapter *sa);
|
|
|
|
void sfc_sw_xstats_close(struct sfc_adapter *sa);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _SFC_SW_STATS_H */
|