From patchwork Thu Feb 1 19:42:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Filip Moc X-Patchwork-Id: 868407 X-Patchwork-Delegate: hauke@hauke-m.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Ia2UKBSD"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 3zXVsK2XfBz9s75 for ; Fri, 2 Feb 2018 06:43:17 +1100 (AEDT) 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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:In-Reply-To:MIME-Version: References:Message-ID:To:From:Date:Reply-To:Cc:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FP3cfa1ij4lPkqelQCEhT4ucTSvLEiyz+HcGITJvJjQ=; b=Ia2UKBSDaqR+oU PGeG4NiVQ85ceMl/05ey8BhcDWR5wuh1ipvuNWa645J9tAVf70rA66mGMZWvp6VJijOC7t2bMrMlU PeK+iAyjQeq/DKrCiC39LznEDVMiWryTEHw+RZjvTxi9KLDxZrqUFRVHZRJg/oTJLXPB74+J8fFT/ VqeVIyWYetyRQVuvJQEcgyA07XMOTvuQ7B/pCVmWsPI432V1cKhbp4w4UUTeqxU/CYqkgyHeSf4gy LPNeMmDRRoDgzLBsTwxpQaqkazBKHQXA+R+Z5+5k0nuzTd9IXhfgOfOYKWysZ8Pf6a09oADRMVKht OLzA2HHApUoomTDwrVGQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ehKlL-0001pf-Fz; Thu, 01 Feb 2018 19:43:11 +0000 Received: from [2a02:768:2100:966:250:fcff:feb6:91f7] (helo=moc6.cz) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ehKlH-0001oM-Jz for lede-dev@lists.infradead.org; Thu, 01 Feb 2018 19:43:09 +0000 Received: by moc6.cz (Postfix, from userid 1025) id 820C22320024; Thu, 1 Feb 2018 20:42:30 +0100 (CET) Date: Thu, 1 Feb 2018 20:42:30 +0100 From: Filip Moc To: lede-dev@lists.infradead.org Message-ID: <20180201194229.azvlehqbujh5gh6v@moc6.cz> References: <20171213213501.o7qztsmnl6k623wu@moc6.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20171213213501.o7qztsmnl6k623wu@moc6.cz> User-Agent: NeoMutt/20170113 (1.7.2) X-Spam-Note: CRM114 invocation failed X-Spam-Score: -1.1 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.8 RDNS_NONE Delivered to internal network by a host with no rDNS Subject: [LEDE-DEV] [PATCH v3] kernel: add kmod-fou X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Once installed fou kernel module allows you to use FOU (Foo over UDP) and GUE (Generic UDP encapsulation) tunnel protocols. To get ip fou command working you also need to install ip-full. Signed-off-by: Filip Moc --- Notes: More info about FOU can be found here: https://lwn.net/Articles/614348/ ip fou in iproute2 from v4.8.0 to v4.14.1 (currently in LEDE) is broken on big-endian systems. This is fixed in v4.15.0: https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?h=v4.15.0&id=33f6dd23a51c4ed5afbf161317c8d01f003f2c2a v2->v3: - Replace AutoLoad with AutoProbe package/kernel/linux/modules/netsupport.mk | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk index 836034ad12..3521b94d6c 100644 --- a/package/kernel/linux/modules/netsupport.mk +++ b/package/kernel/linux/modules/netsupport.mk @@ -434,6 +434,28 @@ endef $(eval $(call KernelPackage,sit)) +define KernelPackage/fou + SUBMENU:=$(NETWORK_SUPPORT_MENU) + TITLE:=FOU and GUE decapsulation + DEPENDS:= \ + +kmod-iptunnel \ + +kmod-udptunnel4 \ + +IPV6:kmod-udptunnel6 + KCONFIG:= \ + CONFIG_NET_FOU \ + CONFIG_NET_FOU_IP_TUNNELS=y + FILES:=$(LINUX_DIR)/net/ipv4/fou.ko + AUTOLOAD:=$(call AutoProbe,fou) +endef + +define KernelPackage/fou/description + Kernel module for FOU (Foo over UDP) and GUE (Generic UDP Encapsulation) tunnelling. + Requires Kernel 3.18 or newer. +endef + +$(eval $(call KernelPackage,fou)) + + define KernelPackage/ip6-tunnel SUBMENU:=$(NETWORK_SUPPORT_MENU) TITLE:=IP-in-IPv6 tunnelling