Re: [PATCH bpf-next 2/2] selftests/bpf: fix "metadata marker" getting overwritten by the netstack
From: Alexander Lobakin
Date: Fri Mar 17 2023 - 09:42:08 EST
From: Ilya Leoshkevich <iii@xxxxxxxxxxxxx>
Date: Thu, 16 Mar 2023 22:22:26 +0100
> On Thu, 2023-03-16 at 18:50 +0100, Alexander Lobakin wrote:
>> Alexei noticed xdp_do_redirect test on BPF CI started failing on
>> BE systems after skb PP recycling was enabled:
[...]
>> @@ -52,7 +52,7 @@ int xdp_redirect(struct xdp_md *xdp)
>>
>> *payload = MARK_IN;
>>
>> - if (bpf_xdp_adjust_meta(xdp, 4))
>> + if (bpf_xdp_adjust_meta(xdp, sizeof(__u64)))
>> return XDP_ABORTED;
>>
>> if (retcode > XDP_PASS)
>
> Tested-by: Ilya Leoshkevich <iii@xxxxxxxxxxxxx>
Much thanks again for the debugging and testing! It definitely wouldn't
have been quick without you :D
Olek