summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/xdp_metadata.h
blob: 938a729bd3072f96dac570d04ab68cb9dcde0379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: GPL-2.0 */
#pragma once

#ifndef ETH_P_IP
#define ETH_P_IP 0x0800
#endif

#ifndef ETH_P_IPV6
#define ETH_P_IPV6 0x86DD
#endif

struct xdp_meta {
	__u64 rx_timestamp;
	__u64 xdp_timestamp;
	__u32 rx_hash;
	union {
		__u32 rx_hash_type;
		__s32 rx_hash_err;
	};
};