]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.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)
committerKelsey Skunberg <kelsey.skunberg@canonical.com>
Tue, 12 Oct 2021 22:31:34 +0000 (16:31 -0600)
commit5c85b4d0b051be8eed04a4fef8f4988e1bf5d0f3
tree14ff48c64eb78bd9973f0d1f34d54c365944fd4c
parent3e4e9cf776afd20aef35a31b8a487413a064fcdd
selftests/bpf: Fix xdp_tx.c prog section name

BugLink: https://bugs.launchpad.net/bugs/1946802
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
tools/testing/selftests/bpf/progs/xdp_tx.c
tools/testing/selftests/bpf/test_xdp_veth.sh