From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Tu Subject: Re: [PATCH bpf-next] selftests/bpf: bpf tunnel test. Date: Thu, 26 Apr 2018 06:59:44 -0700 Message-ID: References: <1524668479-53045-1-git-send-email-u9012063@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" To: Linux Kernel Network Developers Return-path: Received: from mail-qt0-f170.google.com ([209.85.216.170]:43586 "EHLO mail-qt0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755894AbeDZOA0 (ORCPT ); Thu, 26 Apr 2018 10:00:26 -0400 Received: by mail-qt0-f170.google.com with SMTP id l11-v6so31570234qtj.10 for ; Thu, 26 Apr 2018 07:00:25 -0700 (PDT) In-Reply-To: <1524668479-53045-1-git-send-email-u9012063@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: 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 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 > --- I made a mistake by removing the recent XFRM helper test cases. I will send v2. William