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:40:27 +0000 (13:40 +0200)
commit3841dfa7eb5c93044bb28a3bf5400eb8add3a85e
tree890994639904ae8d2ec8bbb1cadb8dc136e87876
parent63ebc1f1df813ebb40d19449c356480555008166
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