From patchwork Sat Apr 18 14:52:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sabrina Dubroca X-Patchwork-Id: 1272614 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=queasysnail.net Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 494GDW1VTJz9sf9 for ; Sun, 19 Apr 2020 00:53:31 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728754AbgDROx3 convert rfc822-to-8bit (ORCPT ); Sat, 18 Apr 2020 10:53:29 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:54150 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726447AbgDROx2 (ORCPT ); Sat, 18 Apr 2020 10:53:28 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-355-cBBW365TMDuaKiUUhyhuZg-1; Sat, 18 Apr 2020 10:53:23 -0400 X-MC-Unique: cBBW365TMDuaKiUUhyhuZg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 12E84107ACC7; Sat, 18 Apr 2020 14:53:22 +0000 (UTC) Received: from hog.localdomain, (unknown [10.40.192.14]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9118E5C1C3; Sat, 18 Apr 2020 14:53:20 +0000 (UTC) From: Sabrina Dubroca To: netdev@vger.kernel.org Cc: Steffen Klassert , Sabrina Dubroca Subject: [PATCH ipsec-next 0/2] xfrm: add IPv6 encapsulation support for ESP over UDP and TCP Date: Sat, 18 Apr 2020 16:52:54 +0200 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: queasysnail.net Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This series adds IPv6 encapsulation of ESP over both UDP and TCP. In both cases, the code is very similar to the existing IPv4 encapsulation implementation. The core espintcp code is almost entirely version-independent. Sabrina Dubroca (2): xfrm: add support for UDPv6 encapsulation of ESP xfrm: add IPv6 support for espintcp include/net/ipv6_stubs.h | 5 + include/net/xfrm.h | 5 + net/ipv4/Kconfig | 1 + net/ipv4/udp.c | 10 +- net/ipv6/Kconfig | 12 ++ net/ipv6/af_inet6.c | 5 + net/ipv6/ah6.c | 1 + net/ipv6/esp6.c | 413 +++++++++++++++++++++++++++++++++++--- net/ipv6/esp6_offload.c | 7 +- net/ipv6/ip6_vti.c | 18 +- net/ipv6/ipcomp6.c | 1 + net/ipv6/xfrm6_input.c | 106 +++++++++- net/ipv6/xfrm6_protocol.c | 48 +++++ net/xfrm/Kconfig | 3 + net/xfrm/Makefile | 2 +- net/xfrm/espintcp.c | 56 +++++- net/xfrm/xfrm_interface.c | 3 + 17 files changed, 646 insertions(+), 50 deletions(-)