Files
xdp-project-bpf-examples/headers/xdp/xdp_stats_kern_user.h
Toke Høiland-Jørgensen 4513664ca3 Initial import with encap-forward example
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2020-10-06 15:53:55 +02:00

22 lines
484 B
C

/* 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
#define XDP_STATS_MAP_NAME xdp_stats_map
#endif /* __XDP_STATS_KERN_USER_H */