DPDK 22.11.4
rte_bitrate.h
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2017 Intel Corporation
3 */
4
5#ifndef _RTE_BITRATE_H_
6#define _RTE_BITRATE_H_
7
8#include <stdint.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
18struct rte_stats_bitrates;
19
20
28struct rte_stats_bitrates *rte_stats_bitrate_create(void);
29
37void rte_stats_bitrate_free(struct rte_stats_bitrates *bitrate_data);
38
49int rte_stats_bitrate_reg(struct rte_stats_bitrates *bitrate_data);
50
51
66int rte_stats_bitrate_calc(struct rte_stats_bitrates *bitrate_data,
67 uint16_t port_id);
68
69#ifdef __cplusplus
70}
71#endif
72
73#endif /* _RTE_BITRATE_H_ */