2018-04-02 22:34:32 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
2021-01-27 16:09:43 +00:00
|
|
|
* Copyright(c) 2014-2021 Broadcom
|
2018-04-02 22:34:32 +00:00
|
|
|
* All rights reserved.
|
2016-06-15 21:23:12 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _BNXT_STATS_H_
|
|
|
|
#define _BNXT_STATS_H_
|
|
|
|
|
2021-01-29 16:48:19 +00:00
|
|
|
#include <ethdev_driver.h>
|
2016-06-15 21:23:12 +00:00
|
|
|
|
|
|
|
void bnxt_free_stats(struct bnxt *bp);
|
2017-10-10 20:20:18 +00:00
|
|
|
int bnxt_stats_get_op(struct rte_eth_dev *eth_dev,
|
2016-06-15 21:23:12 +00:00
|
|
|
struct rte_eth_stats *bnxt_stats);
|
2019-09-06 14:34:54 +00:00
|
|
|
int bnxt_stats_reset_op(struct rte_eth_dev *eth_dev);
|
2017-06-01 17:07:04 +00:00
|
|
|
int bnxt_dev_xstats_get_names_op(__rte_unused struct rte_eth_dev *eth_dev,
|
|
|
|
struct rte_eth_xstat_name *xstats_names,
|
|
|
|
__rte_unused unsigned int limit);
|
|
|
|
int bnxt_dev_xstats_get_op(struct rte_eth_dev *eth_dev,
|
|
|
|
struct rte_eth_xstat *xstats, unsigned int n);
|
2019-09-06 14:34:54 +00:00
|
|
|
int bnxt_dev_xstats_reset_op(struct rte_eth_dev *eth_dev);
|
2017-09-28 21:43:32 +00:00
|
|
|
int bnxt_dev_xstats_get_by_id_op(struct rte_eth_dev *dev, const uint64_t *ids,
|
|
|
|
uint64_t *values, unsigned int limit);
|
|
|
|
int bnxt_dev_xstats_get_names_by_id_op(struct rte_eth_dev *dev,
|
|
|
|
struct rte_eth_xstat_name *xstats_names,
|
|
|
|
const uint64_t *ids, unsigned int limit);
|
2016-06-15 21:23:12 +00:00
|
|
|
|
2017-06-01 17:07:04 +00:00
|
|
|
struct bnxt_xstats_name_off {
|
|
|
|
char name[RTE_ETH_XSTATS_NAME_SIZE];
|
|
|
|
uint64_t offset;
|
|
|
|
};
|
2016-06-15 21:23:12 +00:00
|
|
|
#endif
|