mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02:00
Make VLAN c-tag and s-tag XDP hint testing more convenient by not skipping VLAN-ed packets. Allow both 802.1ad and 802.1Q headers. Acked-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Larysa Zaremba <larysa.zaremba@intel.com> Link: https://lore.kernel.org/r/20231205210847.28460-16-larysa.zaremba@intel.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
29 lines
403 B
C
29 lines
403 B
C
/* 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
|
|
|
|
#ifndef ETH_P_8021Q
|
|
#define ETH_P_8021Q 0x8100
|
|
#endif
|
|
|
|
#ifndef ETH_P_8021AD
|
|
#define ETH_P_8021AD 0x88A8
|
|
#endif
|
|
|
|
struct xdp_meta {
|
|
__u64 rx_timestamp;
|
|
__u64 xdp_timestamp;
|
|
__u32 rx_hash;
|
|
union {
|
|
__u32 rx_hash_type;
|
|
__s32 rx_hash_err;
|
|
};
|
|
};
|