xref: /linux/samples/bpf/xdp_sample_shared.h (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1 // SPDX-License-Identifier: GPL-2.0-only
2 #ifndef _XDP_SAMPLE_SHARED_H
3 #define _XDP_SAMPLE_SHARED_H
4 
5 struct datarec {
6 	size_t processed;
7 	size_t dropped;
8 	size_t issue;
9 	union {
10 		size_t xdp_pass;
11 		size_t info;
12 	};
13 	size_t xdp_drop;
14 	size_t xdp_redirect;
15 } __attribute__((aligned(64)));
16 
17 #endif
18