From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Tu Subject: [PATCH net-next 0/3] add ip6 gre and gretap collect_md mode Date: Fri, 1 Dec 2017 15:26:07 -0800 Message-ID: <1512170770-7866-1-git-send-email-u9012063@gmail.com> To: netdev@vger.kernel.org Return-path: Received: from mail-pg0-f65.google.com ([74.125.83.65]:35806 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751432AbdLAX0U (ORCPT ); Fri, 1 Dec 2017 18:26:20 -0500 Received: by mail-pg0-f65.google.com with SMTP id q20so5119948pgv.2 for ; Fri, 01 Dec 2017 15:26:20 -0800 (PST) Received: from sc9-mailhost3.vmware.com ([208.91.2.1]) by smtp.gmail.com with ESMTPSA id s66sm15408632pfd.74.2017.12.01.15.26.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Dec 2017 15:26:19 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: Similar to gre, vxlan, geneve, ipip tunnels, allow ip6gretap tunnels to operate in collect metadata mode. The first patch adds the support to ip6_gre.c. The second patch enables unsetting the csum for ipv6 tunnel, when using bpf_skb_[gs]et_tunnel_key() helpers. Finally, the last patch adds the ip6 gre and gretap tunnel test cases to BPF sample code. The corresponding iproute2 patch: https://marc.info/?l=linux-netdev&m=151216943128087&w=2 William Tu (3): ip6_gre: add ip6 gre and gretap collect_md mode bpf: allow disabling tunnel csum for ipv6 samples/bpf: extend test_tunnel_bpf.sh with ip6gre net/core/filter.c | 5 +- net/ipv6/ip6_gre.c | 105 +++++++++++++++++++++++++++++++++++++---- net/ipv6/ip6_tunnel.c | 5 +- samples/bpf/tcbpf2_kern.c | 43 +++++++++++++++++ samples/bpf/test_tunnel_bpf.sh | 65 +++++++++++++++++++++++++ 5 files changed, 210 insertions(+), 13 deletions(-) -- 2.7.4