xref: /linux/tools/testing/selftests/bpf/xdp_metadata.h (revision 702648721db590b3425c31ade294000e18808345)
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 	__u32 rx_hash;
15 	union {
16 		__u32 rx_hash_type;
17 		__s32 rx_hash_err;
18 	};
19 };
20