Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4736509rdh; Wed, 29 Nov 2023 09:13:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpAkI51QouIgJHwFgDJw4coh6MzMTX6Ao5mYEPh/Yb/FRtvdWGTd+YRR0hZeQ5l920YLRf X-Received: by 2002:a05:620a:8e16:b0:771:31c:adcb with SMTP id re22-20020a05620a8e1600b00771031cadcbmr15853477qkn.7.1701277989957; Wed, 29 Nov 2023 09:13:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701277989; cv=none; d=google.com; s=arc-20160816; b=ZiKcvNXUr0ETeDQTt4WLzyHt7Ay+s1uw669fsrZIFSs3brBgfPx9SXD9TKBRrp656G UQXFFGWWAyPNIldkITMe5kLQIeG6ErDxciLlfhU+Te8kmJ9+nIfFLfKb1MSntHAzzAVa 2TACjZIMZMRDow7kfA/h8qAweklnfuSgKFiOeJQ1giXKv1p6b8+CMkWuBqxv9oPir6vd cW7snE8ydoV9bSSCMSSo+TFFJIkSFYTXZ/wyDuJMmXhdfxPjXfdbtsRuyF/fiNOuKi7n IyPJ2RqRfDvSHK+IE2G3l2BtZBMw1Wx47QRhM1kr1OhpxYPSUTB12+5Qu/TCzPX+ebaf iPmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=KHafQ2I9fAiIkgbWPCjIvSTo65sTOREfRtPJ7Owe1cQ=; fh=ILeXdWSuA7dt5ZJK2ly3tPUpiMjJ9NUlmB3l01H5GL8=; b=JjIxTNftp9zdaP+7i7AhPY/WwfvMjX1zJiwliPliqakcjnTVzTD7H5rY9HHuLR2Y4d ui/UHuzgU4Ewsw15QiMFXOp0IlooMC/r94qZWJKasy5SjZX+0Ci2Ygck0dSjLW1P+vaJ 27MQe8MUZbbILLzCJ8Xn+6P1ithYGPTTJOIJubG7g9IZl77N6M6mtzicdT76PhID3tx6 hfp3osAtxqBRVLT9yyYsVFsu/hJyDGbamy5cBqgMkbdDJ3xjBG80uNf5pGHkvwo6804F G+Am3Tqp39JdCpZNYOymxWHDIAfqk8WgoKwHpSfZvJm3bTFFatEhCQv+em6ZaSOc1MrN S09g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sN1imfPA; spf=pass (google.com: domain of linux-nfs+bounces-171-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-171-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v19-20020a05620a0a9300b0077d6c80a7absi12703663qkg.11.2023.11.29.09.13.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 09:13:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-171-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sN1imfPA; spf=pass (google.com: domain of linux-nfs+bounces-171-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-171-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9D5001C208F8 for ; Wed, 29 Nov 2023 17:13:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8DB7405D0; Wed, 29 Nov 2023 17:13:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sN1imfPA" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C65453D0D6; Wed, 29 Nov 2023 17:13:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0A97C433C7; Wed, 29 Nov 2023 17:13:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701277988; bh=n0EA6tr7lpM+sWN304wVoqMFxn4vKkm/EFOAGbM/m5M=; h=From:To:Cc:Subject:Date:From; b=sN1imfPA/MYZfHS4/+q1UI2oumHuPRyBklRgmt9eLc8bnYqTU6zADfZ901Ocw5fwn Lo3sblQ1TxIbbTi3LB54NznB3hfgN04vuF5Ct8R//gb6aQ/wi21Oad5z6hlU5Ld11X JC9vJM7FeSI1dKHjJnmiMz9/BDfvHSZTId8M8JjuXnNEj+lVWdbkot75gVo+ALVo7R VbNg+7WYOMly0pclr8WFDs0765Z3X59SKqr0+ErKRFwHS/UTJ451T5Q6eb1R07R/Q/ JBIt2oHul/AhB19esLuCVF4q3gCUHankl6rj04XeiNJX1y9m/UZIx8POl5dySLQvHU 7KjRO+38tjlRw== From: Lorenzo Bianconi To: linux-nfs@vger.kernel.org Cc: lorenzo.bianconi@redhat.com, neilb@suse.de, netdev@vger.kernel.org, jlayton@kernel.org, kuba@kernel.org Subject: [PATCH v5 0/3] convert write_threads, write_version and write_ports to netlink commands Date: Wed, 29 Nov 2023 18:12:42 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Introduce write_threads, write_version and write_ports netlink commands similar to the ones available through the procfs. Changes since v4: - rebase on top of nfsd-next tree Changes since v3: - drop write_maxconn and write_maxblksize for the moment - add write_version and write_ports commands Changes since v2: - use u32 to store nthreads in nfsd_nl_threads_set_doit - rename server-attr in control-plane in nfsd.yaml specs Changes since v1: - remove write_v4_end_grace command - add write_maxblksize and write_maxconn netlink commands This patch can be tested with user-space tool reported below: https://github.com/LorenzoBianconi/nfsd-netlink.git Lorenzo Bianconi (3): NFSD: convert write_threads to netlink command NFSD: convert write_version to netlink command NFSD: convert write_ports to netlink command Documentation/netlink/specs/nfsd.yaml | 83 ++++++++ fs/nfsd/netlink.c | 54 ++++++ fs/nfsd/netlink.h | 8 + fs/nfsd/nfsctl.c | 267 +++++++++++++++++++++++++- include/uapi/linux/nfsd_netlink.h | 30 +++ tools/net/ynl/generated/nfsd-user.c | 254 ++++++++++++++++++++++++ tools/net/ynl/generated/nfsd-user.h | 156 +++++++++++++++ 7 files changed, 845 insertions(+), 7 deletions(-) -- 2.43.0