]> git.proxmox.com Git - ceph.git/blame - ceph/src/seastar/dpdk/drivers/net/bnxt/bnxt_stats.h
import 15.2.0 Octopus source
[ceph.git] / ceph / src / seastar / dpdk / drivers / net / bnxt / bnxt_stats.h
CommitLineData
9f95a23c
TL
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2014-2018 Broadcom
3 * All rights reserved.
7c673cae
FG
4 */
5
6#ifndef _BNXT_STATS_H_
7#define _BNXT_STATS_H_
8
9f95a23c 9#include <rte_ethdev_driver.h>
7c673cae
FG
10
11void bnxt_free_stats(struct bnxt *bp);
9f95a23c 12int bnxt_stats_get_op(struct rte_eth_dev *eth_dev,
7c673cae
FG
13 struct rte_eth_stats *bnxt_stats);
14void bnxt_stats_reset_op(struct rte_eth_dev *eth_dev);
9f95a23c
TL
15int bnxt_dev_xstats_get_names_op(__rte_unused struct rte_eth_dev *eth_dev,
16 struct rte_eth_xstat_name *xstats_names,
17 __rte_unused unsigned int limit);
18int bnxt_dev_xstats_get_op(struct rte_eth_dev *eth_dev,
19 struct rte_eth_xstat *xstats, unsigned int n);
20void bnxt_dev_xstats_reset_op(struct rte_eth_dev *eth_dev);
21int bnxt_dev_xstats_get_by_id_op(struct rte_eth_dev *dev, const uint64_t *ids,
22 uint64_t *values, unsigned int limit);
23int bnxt_dev_xstats_get_names_by_id_op(struct rte_eth_dev *dev,
24 struct rte_eth_xstat_name *xstats_names,
25 const uint64_t *ids, unsigned int limit);
7c673cae 26
9f95a23c
TL
27struct bnxt_xstats_name_off {
28 char name[RTE_ETH_XSTATS_NAME_SIZE];
29 uint64_t offset;
30};
7c673cae 31#endif