lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAH3MdRVL6=5N1yKf2w7tAiGCV+48XMMtQ9iq4VuSC_-Z7YL=nQ@mail.gmail.com>
Date:   Mon, 30 Apr 2018 00:02:50 -0700
From:   Y Song <ys114321@...il.com>
To:     William Tu <u9012063@...il.com>
Cc:     Linux Kernel Network Developers <netdev@...r.kernel.org>
Subject: Re: [PATCH bpf-next] selftests/bpf: bpf tunnel test.

Hi, William,

When compiled the selftests/bpf in my centos 7 based system, I have
the following failures,

clang -I. -I./include/uapi -I../../../include/uapi
-Wno-compare-distinct-pointer-types \
         -O2 -target bpf -emit-llvm -c test_tunnel_kern.c -o - |      \
llc -march=bpf -mcpu=generic  -filetype=obj -o
/data/users/yhs/work/net-next/tools/testing/selftests/bpf/test_tunnel_kern.o
test_tunnel_kern.c:21:10: fatal error: 'linux/erspan.h' file not found
#include <linux/erspan.h>
         ^~~~~~~~~~~~~~~~
1 error generated.

Maybe I missed some packages to install?

Thanks!


On Thu, Apr 26, 2018 at 6:59 AM, William Tu <u9012063@...il.com> wrote:
> On Wed, Apr 25, 2018 at 8:01 AM, William Tu <u9012063@...il.com> wrote:
>> The patch migrates the original tests at samples/bpf/tcbpf2_kern.c
>> and samples/bpf/test_tunnel_bpf.sh to selftests.  There are a couple
>> changes from the original:
>>     1) add ipv6 vxlan, ipv6 geneve, ipv6 ipip tests
>>     2) simplify the original ipip tests (remove iperf tests)
>>     3) improve documentation
>>     4) use bpf_ntoh* and bpf_hton* api
>>
>> In summary, 'test_tunnel_kern.o' contains the following bpf program:
>>   GRE: gre_set_tunnel, gre_get_tunnel
>>   IP6GRE: ip6gretap_set_tunnel, ip6gretap_get_tunnel
>>   ERSPAN: erspan_set_tunnel, erspan_get_tunnel
>>   IP6ERSPAN: ip4ip6erspan_set_tunnel, ip4ip6erspan_get_tunnel
>>   VXLAN: vxlan_set_tunnel, vxlan_get_tunnel
>>   IP6VXLAN: ip6vxlan_set_tunnel, ip6vxlan_get_tunnel
>>   GENEVE: geneve_set_tunnel, geneve_get_tunnel
>>   IP6GENEVE: ip6geneve_set_tunnel, ip6geneve_get_tunnel
>>   IPIP: ipip_set_tunnel, ipip_get_tunnel
>>   IP6IP: ipip6_set_tunnel, ipip6_get_tunnel,
>>          ip6ip6_set_tunnel, ip6ip6_get_tunnel
>>
>> Signed-off-by: William Tu <u9012063@...il.com>
>> ---
>
> I made a mistake by removing the recent XFRM helper test cases.
> I will send v2.
>
> William

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ