From patchwork Mon Jan 26 05:07:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "W. Michael Petullo" X-Patchwork-Id: 432648 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.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 89DC814017C for ; Mon, 26 Jan 2015 16:07:57 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 3F18D28AE07; Mon, 26 Jan 2015 06:05:26 +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=-1.5 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 06B4D28A6FB for ; Mon, 26 Jan 2015 06:05:21 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 HELO_IP_IN_CL16_SUBNET=-0.41 (check from: .flyn. - helo: .dnvrco-oedge-vip.email.rr. - helo-domain: .rr.) FROM/MX_MATCHES_NOT_UNVR_HELO(DOMAIN)_NOR_CL_NAME(DOMAIN)=1.6 REV_IP_EQ_HELO_DOMAIN=-1.25; rate: -4.56 Received: from dnvrco-oedge-vip.email.rr.com (dnvrco-outbound-snat.email.rr.com [107.14.73.232]) by arrakis.dune.hu (Postfix) with ESMTP for ; Mon, 26 Jan 2015 06:05:18 +0100 (CET) Received: from [24.161.95.149] ([24.161.95.149:33487] helo=www.flyn.org) by dnvrco-oedge01 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 80/75-07646-D9BC5C45; Mon, 26 Jan 2015 05:07:42 +0000 Received: from imp.flyn.org (localhost [127.0.0.1]) by www.flyn.org (Postfix) with ESMTP id C9EA5304608A for ; Mon, 26 Jan 2015 00:07:37 -0500 (EST) Received: by imp.flyn.org (Postfix, from userid 1101) id 94C0C158019D; Mon, 26 Jan 2015 00:07:21 -0500 (EST) Date: Mon, 26 Jan 2015 00:07:21 -0500 To: openwrt-devel@lists.openwrt.org User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Message-Id: <20150126050728.94C0C158019D@imp.flyn.org> From: mike@flyn.org (W. Michael Petullo) X-RR-Connecting-IP: 107.14.64.118:25 X-Authority-Analysis: v=2.1 cv=DeuZq5dW c=1 sm=1 tr=0 a=zo2D41VtzC7Pl9oh1yv9pQ==:117 a=zo2D41VtzC7Pl9oh1yv9pQ==:17 a=ayC55rCoAAAA:8 a=A8GZbqUfoaUA:10 a=kj9zAlcOel0A:10 a=yPAlea4wAAAA:8 a=YNv0rlydsVwA:10 a=jdP34snFAAAA:8 a=QdHM30C2u-PcR4JlZUIA:9 a=CjuIK1q_8ugA:10 X-Cloudmark-Score: 0 Subject: [OpenWrt-Devel] [PATCH] kernel: add support for NFSv4 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" From 9dc6a27ba327a6f4ff5892c56c472d857d6ea096 Mon Sep 17 00:00:00 2001 From: "W. Michael Petullo" Date: Mon, 26 Jan 2015 00:01:34 -0500 Subject: [PATCH] kernel: add support for NFSv4 To: openwrt-devel@lists.openwrt.org This work is based on Daniel Colascione's submission to the OpenWrt devel mailing list on January 15th, 2014. I modified his patch so that it applied to the current OpenWrt Barrier Breaker tree. Signed-off-by: W. Michael Petullo --- package/kernel/linux/modules/fs.mk | 50 ++++++++++++++++++++---------- package/kernel/linux/modules/lib.mk | 15 +++++++++ package/kernel/linux/modules/netsupport.mk | 14 +++++++++ 3 files changed, 62 insertions(+), 17 deletions(-) diff --git a/package/kernel/linux/modules/fs.mk b/package/kernel/linux/modules/fs.mk index c117415..9e3470b 100644 --- a/package/kernel/linux/modules/fs.mk +++ b/package/kernel/linux/modules/fs.mk @@ -292,12 +292,24 @@ define KernelPackage/fs-nfs/description Kernel module for NFS support endef +define KernelPackage/fs-nfs/config + if PACKAGE_kmod-fs-nfs + config KERNEL_NFS_V4 + bool "Support NFSv4 in NFS client" + depends on PACKAGE_kmod-fs-sunrpc-auth-rpcgss + default n + help + Select this option to support NFSv4 in the NFS server + endif +endef + $(eval $(call KernelPackage,fs-nfs)) define KernelPackage/fs-nfs-common SUBMENU:=$(FS_MENU) TITLE:=Common NFS filesystem modules + DEPENDS:=+kmod-lib-oid-registry KCONFIG:= \ CONFIG_LOCKD \ CONFIG_SUNRPC @@ -310,36 +322,40 @@ endef $(eval $(call KernelPackage,fs-nfs-common)) -define KernelPackage/fs-nfs-common-v4 +define KernelPackage/fs-sunrpc-auth-rpcgss SUBMENU:=$(FS_MENU) - TITLE:=Common NFS V4 filesystem modules - KCONFIG+=\ - CONFIG_SUNRPC_GSS\ - CONFIG_NFS_V4=y\ - CONFIG_NFSD_V4=y - DEPENDS:= @BROKEN - FILES+=$(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko - AUTOLOAD=$(call AutoLoad,30,auth_rpcgss) -endef - -define KernelPackage/fs-nfs-common-v4/description - Kernel modules for NFS V4 & NFSD V4 kernel support + TITLE:=GSS authentication for SUN RPC + DEPENDS:=+kmod-fs-nfs-common + KCONFIG:=CONFIG_SUNRPC_GSS + FILES:= \ + $(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko + AUTOLOAD:=$(call AutoLoad,30,auth_rpcgss) endef -$(eval $(call KernelPackage,fs-nfs-common-v4)) - +$(eval $(call KernelPackage,fs-sunrpc-auth-rpcgss)) define KernelPackage/fs-nfsd SUBMENU:=$(FS_MENU) TITLE:=NFS kernel server support - DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs - KCONFIG:= \ + DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs +kmod-fs-sunrpc-auth-rpcgss + KCONFIG= \ CONFIG_NFSD \ CONFIG_NFSD_FAULT_INJECTION=n FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.ko AUTOLOAD:=$(call AutoLoad,40,nfsd) endef +define KernelPackage/fs-nfsd/config + if PACKAGE_kmod-fs-nfsd + config KERNEL_NFSD_V4 + bool "Support NFSv4 in NFS server" + depends on PACKAGE_kmod-fs-sunrpc-auth-rpcgss + default n + help + Select this option to support NFSv4 in the NFS server + endif +endef + define KernelPackage/fs-nfsd/description Kernel module for NFS kernel server support endef diff --git a/package/kernel/linux/modules/lib.mk b/package/kernel/linux/modules/lib.mk index cd919ba..a148da3 100644 --- a/package/kernel/linux/modules/lib.mk +++ b/package/kernel/linux/modules/lib.mk @@ -202,3 +202,18 @@ define KernelPackage/lib-cordic/description endef $(eval $(call KernelPackage,lib-cordic)) + + +define KernelPackage/lib-oid-registry + SUBMENU:=$(LIB_MENU) + TITLE:=OID-Registry function support + KCONFIG:=CONFIG_OID_REGISTRY + FILES:=$(LINUX_DIR)/lib/oid_registry.ko + AUTOLOAD:=$(call AutoProbe,oid-registry) +endef + +define KernelPackage/lib-oid-registry/description + Kernel module for OID-Registry function support +endef + +$(eval $(call KernelPackage,lib-oid-registry)) diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk index fc85e22..bffb09c 100644 --- a/package/kernel/linux/modules/netsupport.mk +++ b/package/kernel/linux/modules/netsupport.mk @@ -967,3 +967,17 @@ define KernelPackage/rxrpc/description endef $(eval $(call KernelPackage,rxrpc)) + +define KernelPackage/dns-resolver + SUBMENU:=$(NETWORK_SUPPORT_MENU) + TITLE:=DNS-resolver modules + KCONFIG:=CONFIG_DNS_RESOLVER + FILES:= \ + $(LINUX_DIR)/net/dns_resolver/dns_resolver.ko +endef + +define KernelPackage/dns-resolver/description + Kernel modules for DNS-RESOLVER support +endef + +$(eval $(call KernelPackage,dns-resolver))