blob: 2888d1c81cb66669e36e1808f1f98a5b37d44f7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/* Copyright (c) 2018, Linaro Limited
* Copyright (c) 2021, Nokia
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef ODP_ETHTOOL_H_
#define ODP_ETHTOOL_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <string.h>
#include <odp/api/packet_io_stats.h>
/**
* Get ethtool statistics of a packet socket
*/
int _odp_ethtool_stats_get_fd(int fd, const char *name, odp_pktio_stats_t *stats);
int _odp_ethtool_extra_stat_info(int fd, const char *name, odp_pktio_extra_stat_info_t info[],
int num);
int _odp_ethtool_extra_stats(int fd, const char *name, uint64_t stats[], int num);
int _odp_ethtool_extra_stat_counter(int fd, const char *name, uint32_t id, uint64_t *stat);
#ifdef __cplusplus
}
#endif
#endif /* ODP_ETHTOOL_H_ */
|