xref: /linux/tools/testing/selftests/bpf/xsk_xdp_common.h (revision 1b98f357dadd6ea613a435fbaef1a5dd7b35fd21)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #ifndef XSK_XDP_COMMON_H_
4 #define XSK_XDP_COMMON_H_
5 
6 #define MAX_SOCKETS 2
7 #define PKT_HDR_ALIGN (sizeof(struct ethhdr) + 2) /* Just to align the data in the packet */
8 
9 struct xdp_info {
10 	__u64 count;
11 } __attribute__((aligned(32)));
12 
13 #endif /* XSK_XDP_COMMON_H_ */
14