lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <056a0000-f74c-47d9-9fdb-04f0646c174b@linux.dev>
Date: Fri, 17 Oct 2025 16:34:27 -0700
From: Martin KaFai Lau <martin.lau@...ux.dev>
To: Alexis Lothoré (eBPF Foundation)
 <alexis.lothore@...tlin.com>
Cc: Alexei Starovoitov <ast@...nel.org>,
 Daniel Borkmann <daniel@...earbox.net>, Andrii Nakryiko <andrii@...nel.org>,
 Eduard Zingerman <eddyz87@...il.com>, Song Liu <song@...nel.org>,
 Yonghong Song <yonghong.song@...ux.dev>,
 John Fastabend <john.fastabend@...il.com>, KP Singh <kpsingh@...nel.org>,
 Stanislav Fomichev <sdf@...ichev.me>, Hao Luo <haoluo@...gle.com>,
 Jiri Olsa <jolsa@...nel.org>, Shuah Khan <shuah@...nel.org>,
 ebpf@...uxfoundation.org, Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
 Bastien Curutchet <bastien.curutchet@...tlin.com>, bpf@...r.kernel.org,
 linux-kselftest@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH bpf-next 3/5] selftests/bpf: make test_tc_tunnel.bpf.c
 compatible with big endian platforms



On 10/17/25 7:29 AM, Alexis Lothoré (eBPF Foundation) wrote:
> +#define ETH_HLEN	14
> +#define TC_ACT_OK	0
> +#define TC_ACT_SHOT	2
> +#define ETH_P_MPLS_UC	0x8847
> +#define ETH_P_IP	0x0800
> +#define ETH_P_IPV6	0x86DD
> +#define ETH_P_TEB	0x6558
> +
> +#define MPLS_LS_S_MASK	0x00000100
> +#define BPF_F_ADJ_ROOM_ENCAP_L2(len)			\
> +	(((__u64)len & BPF_ADJ_ROOM_ENCAP_L2_MASK)	\
> +	 << BPF_ADJ_ROOM_ENCAP_L2_SHIFT)
> +

Some of them (e.g. TC_ACT_OK) should be already in bpf_tracing_net.h, so 
include that header instead. Not sure the remaining ones (e.g. MPLS) 
will be very useful, so I would leave it here for now instead of adding 
them to bpf_tracing_net.h.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ