Re: [PATCH bpf-next] selftests/bpf: bpf tunnel test.

2018-04-30 Thread William Tu
On Mon, Apr 30, 2018 at 2:05 AM, Daniel Borkmann wrote: > On 04/30/2018 09:02 AM, Y Song wrote: >> 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-poi

Re: [PATCH bpf-next] selftests/bpf: bpf tunnel test.

2018-04-30 Thread Daniel Borkmann
On 04/30/2018 09:02 AM, Y Song wrote: > 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_tunne

Re: [PATCH bpf-next] selftests/bpf: bpf tunnel test.

2018-04-30 Thread Y Song
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 -

Re: [PATCH bpf-next] selftests/bpf: bpf tunnel test.

2018-04-26 Thread William Tu
On Wed, Apr 25, 2018 at 8:01 AM, William Tu 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 or

[PATCH bpf-next] selftests/bpf: bpf tunnel test.

2018-04-25 Thread William Tu
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 document