From patchwork Fri Dec 1 23:26:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Tu X-Patchwork-Id: 843806 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tdlFnzB/"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3ypVlN1f3vz9sMN for ; Sat, 2 Dec 2017 10:26:24 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751598AbdLAX0V (ORCPT ); Fri, 1 Dec 2017 18:26:21 -0500 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=t6bJ+tjIC9fLNzzJywA8K1UrsHmeydVtpKN9LxrhSkM=; b=tdlFnzB/jUqSeOf8LyMyWMzsOSEqS5QACZU7Qu8xIe40O26YPEAkv5HFrCzmN2QrU3 0d5+HQd2izsp7lgfVesV8qLKEf2vOKbe2pJtmHLFSnFSXkVbukejet8NL4y6SDsoRXiq 5wuoX0OtulnLShWdwZ43QLcFp2/oD/8GIvCwU6eOmYyA6yIsGVnqKGF55siJOsNNGKBl ZD2LFm0d0A0XiwXOW9shQlvJw0QyzuYoJ5QeiQF53HnzSGI43rySmfTlOCnYcZXwA1KR igK2fRxY0R5zIRvgQWiYtQmBNKfOIJWSf6RmYCydtJR6o+zJ63X9C2dP5Wv1wPH9qggw 9b4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=t6bJ+tjIC9fLNzzJywA8K1UrsHmeydVtpKN9LxrhSkM=; b=HY5UKz0fJEYeTmJcn9PnEWbKcV/XXYdOpYc8K+i/vb3/gaAKKSkImP9mhcVjlT+nyl HotDF4/b+gwrVEGjXYOXTWd6420ogfRfRLN1VcCw2a+yEvmFyw5oVjaUxFtQ3SHb85Lc 8kNq6ArW5zXer6Ulo/vTF6SqMu21z2+le5V6SMxsLEh8isC3gv0mgnDUNg662TvUYbMD gjqzX3Wzxlp2aRXkeOvCWv4lkEDRjRqcLB2LJxGuqf/Fcp1cWkRCpgpI4aUYoMxYnkBL TXD09ne0jvlnn8HNXSZif14SAjP+rnwX1TOBh7v6eghtsCrjyrO1IH1vUUbISUJAW7fc /JwA== X-Gm-Message-State: AJaThX6/Wpa4O3YImxgAP8H+TiJg/ZfUlJLM7Wtk0h/BHJ8S/zde4VhA PM0VphSlaNLiqX7p2zZKCCbQXeCK X-Google-Smtp-Source: AGs4zMaqSw2CYwGJP6mVPvsBdxBQWTck/V3RLA1NTj0mWh6TYWNjD113R/+p6rOzet+X9Xh4we3NLg== X-Received: by 10.101.101.205 with SMTP id y13mr7425033pgv.249.1512170780166; 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) From: William Tu To: netdev@vger.kernel.org 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> X-Mailer: git-send-email 2.7.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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(-)