blob: d7b8d05e6fa03e8aa7a4a74e327a95c6298ea95f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* SPDX-License-Identifier: GPL-2.0 */
/* Used by BPF-prog kernel side BPF-progs and userspace programs,
* for sharing xdp_stats common struct and DEFINEs.
*/
#ifndef __XDP_STATS_KERN_USER_H
#define __XDP_STATS_KERN_USER_H
/* This is the data record stored in the map */
struct datarec {
__u64 rx_packets;
__u64 rx_bytes;
};
#ifndef XDP_ACTION_MAX
#define XDP_ACTION_MAX (XDP_REDIRECT + 1)
#endif
#endif /* __XDP_STATS_KERN_USER_H */
|