xref: /linux/samples/bpf/xdp_sample_shared.h (revision 887069f424550ebdcb411166733e1d05002b58e4)
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