Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2218700rdb; Mon, 11 Sep 2023 15:00:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFhnkxXXUZelOoD2LxAjBFvUR6A/+7cdiqf2lfwvIjTt+kWp+UI/ge/weije1X4jtTYCTwt X-Received: by 2002:a05:6a21:a589:b0:140:9a63:d5b9 with SMTP id gd9-20020a056a21a58900b001409a63d5b9mr11549916pzc.15.1694469625172; Mon, 11 Sep 2023 15:00:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694469625; cv=none; d=google.com; s=arc-20160816; b=fNwecpkb4Spzt6NgkNgPmkNJJR/wENRm64n2NqcVDup2wNxV2oYZYzqlSdT5N9A/Aw NaDdCtjiKBQPg0PeY/KYURPUkyW2J2cI6PhEx5OlpdjW+tzPP11+RZyrc9iJGjNobiBZ X9Kwaw7YXsthcJRdpTeritmQx4kbf2+pgzH4BuTDDx2zv/cvrf0ijyJBCsjbkNl2nhxN 8vU0E2p+cdkkJkTP6w78llW/MBvDH0FxMVTaBH24VdmvX6HDd4F4fiNHHkUgWUbgRqEw Lock2MGzMbdDrAoCtQvwPd9dsjvmP+EW4YpAvkYcP9CZLEo/DATXAibezi1h3Yex3toz Pqwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gq2oJDaAvq58xjeKv9sHEXZC5zz+nZOwahoD+xeEhQQ=; fh=M/ATcsXqNBHNJPY27GhOFve7O7TD70nYmbz4vW9Ij2k=; b=ZANn5HDzDLCjHRQjnJ639X8oz6vdf4+gRGJk/mSAUj0pUZDAjptZXZq0H3j08zxRil JKoPfZAK1DF8+KyLzWC88BVUk9II+1QKdILXh9eRFMooD3X4p9grw0kAI2x4Vz2BbLeK gWTZzAYWgmxtMr9AIm7TY6M51IWMqUaYacsQFHIfSbmvTF6q82YOcTcZmrgLGmDBo8pn 3Un2aZoIe5EJhIgKxddZVUNjPXDeqsGLxm94BJPMBfbeOvGXdnTyONkMYzUoi9m7GK5N PIaPiGlerXDKYJ/U4wTfbukdzrTKTEZgaqqZBzYuUXjX16dlAO10GFX00quiiJ/TSWUd KkhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=stTHYRxv; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g16-20020a056a000b9000b0068fd7cb5864si1097820pfj.263.2023.09.11.15.00.05; Mon, 11 Sep 2023 15:00:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=stTHYRxv; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353251AbjIKV7W (ORCPT + 99 others); Mon, 11 Sep 2023 17:59:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237432AbjIKMuS (ORCPT ); Mon, 11 Sep 2023 08:50:18 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22A47CEB for ; Mon, 11 Sep 2023 05:50:14 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B71BC433C7; Mon, 11 Sep 2023 12:50:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694436613; bh=Ij41ybCGuDW0ic6HLnKIf1eYLQndXU6pbAajOQ4+vXs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=stTHYRxvHDPDSjFwPMtpr7/MlXXVZ3LxFflhK/TPwk2F8Y8eQeVZA32wHDPB7vySi IHGkonIhvdRypf4dryir+PQXOvOFCpF6ap1BNfm1fOBfbzWxcMEzQ0+b6kUd7jkC5M GJ2ftRgtZVY7p55r4TgcwWC/azL6uQAIOM6uqx/E5SpSeXnzVEPlVFGu0kvXEJLe2Z 7aTCM2/MyptgrTZygw1nbDFGG3QGW+t3J/MbC0XpdMLP2lYeKOc4IyoZsjeLycir8H 5aIAOGBX+yWw10o2sAzl7cvJqCPvvWu4JCIShA929vfNQuJmgoc6yT4PRRTBAM2bH0 a6K3xo4Vdw+vg== From: Lorenzo Bianconi To: linux-nfs@vger.kernel.org Cc: lorenzo.bianconi@redhat.com, chuck.lever@oracle.com, jlayton@kernel.org, neilb@suse.de, netdev@vger.kernel.org Subject: [PATCH v8 1/3] Documentation: netlink: add a YAML spec for nfsd_server Date: Mon, 11 Sep 2023 14:49:44 +0200 Message-ID: <47c144cfa1859ab089527e67c8540eb920427c64.1694436263.git.lorenzo@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Introduce nfsd_server.yaml specs to generate uAPI and netlink code for nfsd server. Add rpc-status specs to define message reported by the nfsd server dumping the pending RPC requests. Tested-by: Jeff Layton Signed-off-by: Lorenzo Bianconi --- Documentation/netlink/specs/nfsd_server.yaml | 97 ++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 Documentation/netlink/specs/nfsd_server.yaml diff --git a/Documentation/netlink/specs/nfsd_server.yaml b/Documentation/netlink/specs/nfsd_server.yaml new file mode 100644 index 000000000000..e681b493847b --- /dev/null +++ b/Documentation/netlink/specs/nfsd_server.yaml @@ -0,0 +1,97 @@ +# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) + +name: nfsd_server + +doc: + nfsd server configuration over generic netlink. + +attribute-sets: + - + name: rpc-status-comp-op-attr + enum-name: nfsd-rpc-status-comp-attr + name-prefix: nfsd-attr-rpc-status-comp- + attributes: + - + name: unspec + type: unused + value: 0 + - + name: op + type: u32 + - + name: rpc-status-attr + enum-name: nfsd-rpc-status-attr + name-prefix: nfsd-attr-rpc-status- + attributes: + - + name: unspec + type: unused + value: 0 + - + name: xid + type: u32 + byte-order: big-endian + - + name: flags + type: u32 + - + name: prog + type: u32 + - + name: version + type: u8 + - + name: proc + type: u32 + - + name: service_time + type: s64 + - + name: pad + type: pad + - + name: saddr4 + type: u32 + byte-order: big-endian + display-hint: ipv4 + - + name: daddr4 + type: u32 + byte-order: big-endian + display-hint: ipv4 + - + name: saddr6 + type: binary + display-hint: ipv6 + - + name: daddr6 + type: binary + display-hint: ipv6 + - + name: sport + type: u16 + byte-order: big-endian + - + name: dport + type: u16 + byte-order: big-endian + - + name: compond-op + type: array-nest + nested-attributes: rpc-status-comp-op-attr + +operations: + enum-name: nfsd-commands + name-prefix: nfsd-cmd- + list: + - + name: unspec + doc: unused + value: 0 + - + name: rpc-status-get + doc: dump pending nfsd rpc + attribute-set: rpc-status-attr + dump: + pre: nfsd-server-nl-rpc-status-get-start + post: nfsd-server-nl-rpc-status-get-done -- 2.41.0