mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-30 15:53:22 -05:00
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 <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected] Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
parent
350e7501ee
commit
c408efcb8a
2 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@
|
|||
#include <linux/bpf.h>
|
||||
#include "bpf_helpers.h"
|
||||
|
||||
SEC("tx")
|
||||
SEC("xdp")
|
||||
int xdp_tx(struct xdp_md *xdp)
|
||||
{
|
||||
return XDP_TX;
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ ip link set dev veth2 xdp pinned $BPF_DIR/progs/redirect_map_1
|
|||
ip link set dev veth3 xdp pinned $BPF_DIR/progs/redirect_map_2
|
||||
|
||||
ip -n ns1 link set dev veth11 xdp obj xdp_dummy.o sec xdp_dummy
|
||||
ip -n ns2 link set dev veth22 xdp obj xdp_tx.o sec tx
|
||||
ip -n ns2 link set dev veth22 xdp obj xdp_tx.o sec xdp
|
||||
ip -n ns3 link set dev veth33 xdp obj xdp_dummy.o sec xdp_dummy
|
||||
|
||||
trap cleanup EXIT
|
||||
|
|
|
|||
Loading…
Reference in a new issue