From patchwork Sat Jan 30 22:14:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Valentin?= X-Patchwork-Id: 576078 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id EDB76140B9E for ; Sun, 31 Jan 2016 09:15:47 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 6977F28C164; Sat, 30 Jan 2016 23:15:04 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 19E9A28C12A for ; Sat, 30 Jan 2016 23:14:51 +0100 (CET) X-policyd-weight: using cached result; rate: -7.6 Received: from mail3.marcant.net (mail3.marcant.net [217.14.160.188]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sat, 30 Jan 2016 23:14:51 +0100 (CET) Received: from [192.168.180.1] (port=48136 helo=admins.marcant.net) by mail3.marcant.net with esmtp (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1aPdn7-0005Fd-00 for openwrt-devel@lists.openwrt.org; Sat, 30 Jan 2016 23:14:49 +0100 Received: from varus.marcant.loc (unknown [192.168.191.144]) by admins.marcant.net (Postfix) with ESMTP id D9118280385; Sat, 30 Jan 2016 23:14:48 +0100 (CET) X-CTCH-RefID: str=0001.0A0C0205.56AD35D9.000E, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 From: =?UTF-8?q?Andr=C3=A9=20Valentin?= To: openwrt-devel@lists.openwrt.org Date: Sat, 30 Jan 2016 23:14:47 +0100 Message-Id: <1454192087-11405-2-git-send-email-avalentin@marcant.net> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1454192087-11405-1-git-send-email-avalentin@marcant.net> References: <1454192087-11405-1-git-send-email-avalentin@marcant.net> MIME-Version: 1.0 Subject: [OpenWrt-Devel] [PATCH RFC 2/2] modules/netsupport: Add MPLS support X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Add needed modules for MPLS support. Signed-off-by: André Valentin --- package/kernel/linux/modules/netsupport.mk | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk index 446996e..0215722 100644 --- a/package/kernel/linux/modules/netsupport.mk +++ b/package/kernel/linux/modules/netsupport.mk @@ -1029,3 +1029,26 @@ define KernelPackage/rxrpc/description endef $(eval $(call KernelPackage,rxrpc)) + +define KernelPackage/mpls + SUBMENU:=$(NETWORK_SUPPORT_MENU) + TITLE:=MPLS support + KCONFIG:= \ + CONFIG_MPLS \ + CONFIG_NET_MPLS_GSO=m \ + CONFIG_MPLS_ROUTING=m \ + CONFIG_MPLS_IPTUNNEL=m + FILES:= \ + $(LINUX_DIR)/net/mpls/mpls_gso.ko \ + $(LINUX_DIR)/net/mpls/mpls_iptunnel.ko \ + $(LINUX_DIR)/net/mpls/mpls_router.ko + AUTOLOAD:=$(call AutoLoad,30,mpls_router mpls_iptunnel mpls_gso) + DEPENDS:=+@KERNEL_MPLS +@KERNEL_LWTUNNEL +endef + +define KernelPackage/mpls/description + Kernel support for MPLS +endef + +$(eval $(call KernelPackage,mpls)) +