1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2019 Cesnet
3 * Copyright(c) 2019 Netcope Technologies, a.s. <info@netcope.com>
13 #include <rte_ethdev.h>
16 * DPDK callback to get device statistics.
19 * Pointer to Ethernet device structure.
21 * Stats structure output buffer.
24 * 0 on success and stats is filled, negative errno value otherwise.
27 nfb_eth_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats);
30 * DPDK callback to clear device statistics.
33 * Pointer to Ethernet device structure.
36 * 0 on success, negative errno value otherwise.
39 nfb_eth_stats_reset(struct rte_eth_dev *dev);
41 #endif /* _NFB_STATS_H_ */