]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: Fix xdp_tx.c prog section name
authorJussi Maki <joamaki@gmail.com>
Sat, 31 Jul 2021 05:57:37 +0000 (05:57 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:42:10 +0000 (13:42 +0200)
commitff6e9e7f7d371ef9c0f91afd22aa4bc0048be9af
tree42cf96cb3d4044286e1a57cfdb8d6c45f38f1923
parent0fcc8206ff05db616528eb5798a589c910a17455
selftests/bpf: Fix xdp_tx.c prog section name

[ Upstream commit 95413846cca37f20000dd095cf6d91f8777129d7 ]

The program type cannot be deduced from 'tx' which causes an invalid
argument error when trying to load xdp_tx.o using the skeleton.
Rename the section name to "xdp" so that libbpf can deduce the type.

Signed-off-by: Jussi Maki <joamaki@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210731055738.16820-7-joamaki@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/progs/xdp_tx.c
tools/testing/selftests/bpf/test_xdp_veth.sh