Skip to content
Snippets Groups Projects
Commit bfdad9de authored by Yuan Chen's avatar Yuan Chen Committed by Greg Kroah-Hartman
Browse files

bpf: Fix the xdp_adjust_tail sample prog issue


[ Upstream commit 4236f114 ]

During the xdp_adjust_tail test, probabilistic failure occurs and SKB package
is discarded by the kernel. After checking the issues by tracking SKB package,
it is identified that they were caused by checksum errors. Refer to checksum
of the arch/arm64/include/asm/checksum.h for fixing.

v2: Based on Alexei Starovoitov's suggestions, it is necessary to keep the code
 implementation consistent.

Fixes: c6ffd1ff (bpf: add bpf_xdp_adjust_tail sample prog)
Signed-off-by: default avatarYuan Chen <chenyuan@kylinos.cn>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240930024115.52841-1-chenyuan_fl@163.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7706afc2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment