From patchwork Thu Jun 6 13:50:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Valentin?= X-Patchwork-Id: 1111146 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=marcant.net Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ah2e4C0M"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45KRsj1LKHz9sND for ; Thu, 6 Jun 2019 23:51:53 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9+eR+mLJn713H3OaoQYVOtY3Xj0wBlgO+9Zymxlamuc=; b=ah2e4C0Mcr1k08 TmhNREtFwY97gU+/uIXKABVReUelXhGBzqzE/z+v9Y293RSgBZ+rvXLCZ5PRONsBXuNtvqHNRg1DD S04gn0EXs8ryru+9PJpsUKuaWy7RJtUJqx6AWp2JHRGaqZ2vUWzHYU2bV+/bpq1ZolP5aYXYUzfUF raIh+ZrROWO8e8sCUtqIskZQJkGVaNadF8d/pDiJCJH92Nk9a/mddmw2dK/93yNuP53WTlgy4+Tws nwrzNxF1SJiJtqASiBASXIc4cLpXF/H8JXkC6sasX/m3o2L2ZpQRGSAmo6FSC6YvFLavtF4o32kjb 90h3Rh2bIGSaxbJG7ACg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYsnv-0000WV-7i; Thu, 06 Jun 2019 13:51:43 +0000 Received: from mail3.marcant.net ([217.14.160.188]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hYsnP-0008IM-Un for openwrt-devel@lists.openwrt.org; Thu, 06 Jun 2019 13:51:14 +0000 Received: from [192.168.180.1] (port=35596 helo=admins.marcant.net) by mail3.marcant.net with esmtp (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1hYsnE-0006tM-1B for openwrt-devel@lists.openwrt.org; Thu, 06 Jun 2019 15:51:00 +0200 Received: from varus.marcant.loc (unknown [192.168.3.44]) by admins.marcant.net (Postfix) with ESMTPA id 47F8C2802CE; Thu, 6 Jun 2019 15:51:00 +0200 (CEST) From: =?utf-8?q?Andr=C3=A9_Valentin?= To: openwrt-devel@lists.openwrt.org Date: Thu, 6 Jun 2019 15:50:53 +0200 Message-Id: <20190606135055.30432-2-avalentin@marcant.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190606135055.30432-1-avalentin@marcant.net> References: <20190606135055.30432-1-avalentin@marcant.net> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190606_065112_138847_7D5116EF X-CRM114-Status: UNSURE ( 6.44 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [217.14.160.188 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record Subject: [OpenWrt-Devel] [PATCH 1/3] netsupport: add xfrmi interface support X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Andr=C3=A9_Valentin?= MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Add support for xfrm interfaces in kernel. XFRM interfaces are used by the IPsec stack for tunneling. XFRM interfaces are available since linux 4.19. --- package/kernel/linux/modules/netsupport.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk index 1b6247643f..385c1c65ec 100644 --- a/package/kernel/linux/modules/netsupport.mk +++ b/package/kernel/linux/modules/netsupport.mk @@ -380,6 +380,20 @@ endef $(eval $(call KernelPackage,ip6-vti)) +define KernelPackage/xfrm-interface + SUBMENU:=$(NETWORK_SUPPORT_MENU) + TITLE:=IPsec XFRM Interface + DEPENDS:=+kmod-ipsec4 +kmod-ipsec6 @LINUX_4_19 + KCONFIG:=CONFIG_XFRM_INTERFACE + FILES:=$(LINUX_DIR)/net/xfrm/xfrm_interface.ko + AUTOLOAD:=$(call AutoLoad,33,xfrm_interface) +endef + +define KernelPackage/xfrm-interface/description + Kernel modules for XFRM Interface +endef + +$(eval $(call KernelPackage,xfrm-interface)) define KernelPackage/iptunnel4 SUBMENU:=$(NETWORK_SUPPORT_MENU)