linux-zen-desktop/tools/testing/selftests/bpf/xdp_metadata.h

21 lines
291 B
C
Raw Normal View History

2023-08-30 16:31:07 +01:00
/* 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;
2023-10-24 11:59:35 +01:00
__u64 xdp_timestamp;
2023-08-30 16:31:07 +01:00
__u32 rx_hash;
union {
__u32 rx_hash_type;
__s32 rx_hash_err;
};
};