xref: /linux/tools/testing/selftests/bpf/xdp_metadata.h (revision 34dc1baba215b826e454b8d19e4f24adbeb7d00d)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #pragma once
3 
4 #ifndef ETH_P_IP
5 #define ETH_P_IP 0x0800
6 #endif
7 
8 #ifndef ETH_P_IPV6
9 #define ETH_P_IPV6 0x86DD
10 #endif
11 
12 struct xdp_meta {
13 	__u64 rx_timestamp;
14 	__u64 xdp_timestamp;
15 	__u32 rx_hash;
16 	union {
17 		__u32 rx_hash_type;
18 		__s32 rx_hash_err;
19 	};
20 };
21