From 877732230d2a2759cf8404643eae582cbb81b71f Mon Sep 17 00:00:00 2001 From: Vincent JARDIN Date: Fri, 16 Feb 2024 01:58:12 +0100 Subject: [PATCH] test gtp_mirror.bpf: apply the kernel verifier Check that it is loadable. In order to keep it simple and avoid using tc, let's leverage bpftool. bpftool is provided by: linux-tools-common: /usr/sbin/bpftool --- test/testenv.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/test/testenv.sh b/test/testenv.sh index ff68fac..58c6b05 100755 --- a/test/testenv.sh +++ b/test/testenv.sh @@ -167,13 +167,8 @@ ip netns exec sandbox \ ip netns exec sandbox \ ip link set dev lo xdpgeneric off -# XXX TODO: error missing sec prog -# ip netns exec sandbox \ -# ip link set dev lo xdpgeneric obj $bpfmirror verbose -# ip netns exec sandbox \ -# ip -d link show dev lo -# ip netns exec sandbox \ -# ip link set dev lo xdpgeneric off +ip netns exec sandbox \ + bpftool -d prog load $bpfmirror /sys/fs/bpf/mirror ip netns del sandbox