From: "Chuck Lever" <cel@kernel.org>
To: "Jeff Layton" <jlayton@kernel.org>,
"Chuck Lever" <chuck.lever@oracle.com>,
NeilBrown <neil@brown.name>,
"Olga Kornievskaia" <okorniev@redhat.com>,
"Dai Ngo" <Dai.Ngo@oracle.com>, "Tom Talpey" <tom@talpey.com>,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
"Jakub Kicinski" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>,
"Simon Horman" <horms@kernel.org>,
"Donald Hunter" <donald.hunter@gmail.com>
Cc: "Trond Myklebust" <trondmy@kernel.org>,
"Anna Schumaker" <anna@kernel.org>,
linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org
Subject: Re: [PATCH v2 10/13] nfsd: add netlink upcall for the svc_export cache
Date: Mon, 30 Mar 2026 10:22:41 -0400 [thread overview]
Message-ID: <30ff0483-ec38-40b3-811b-6cd66febe1b1@app.fastmail.com> (raw)
In-Reply-To: <20260325-exportd-netlink-v2-10-067df016ea95@kernel.org>
On Wed, Mar 25, 2026, at 10:40 AM, Jeff Layton wrote:
> Add netlink-based cache upcall support for the svc_export (nfsd.export)
> cache to Documentation/netlink/specs/nfsd.yaml and regenerate the
> resulting files.
> diff --git a/Documentation/netlink/specs/nfsd.yaml
> b/Documentation/netlink/specs/nfsd.yaml
> index
> 8ab43c8253b2e83bcc178c3f4fe8c41c2997d153..709751502f8b56bd4b68462fa15337df5e3e035e
> 100644
> --- a/Documentation/netlink/specs/nfsd.yaml
> +++ b/Documentation/netlink/specs/nfsd.yaml
> @@ -6,7 +6,51 @@ uapi-header: linux/nfsd_netlink.h
>
> doc: NFSD configuration over generic netlink.
>
> +definitions:
> + -
> + type: flags
> + name: cache-type
> + entries: [svc_export]
> + -
> + type: flags
> + name: export-flags
> + doc: These flags are ordered to match the NFSEXP_* flags in
> include/linux/nfsd/export.h
> + entries:
> + - readonly
> + - insecure-port
> + - rootsquash
> + - allsquash
> + - async
> + - gathered-writes
> + - noreaddirplus
> + - security-label
> + - sign-fh
> + - nohide
> + - nosubtreecheck
> + - noauthnlm
> + - msnfs
> + - fsid
> + - crossmount
> + - noacl
> + - v4root
> + - pnfs
> + -
> + type: flags
> + name: xprtsec-mode
> + doc: These flags are ordered to match the NFSEXP_XPRTSEC_* flags
> in include/linux/nfsd/export.h
> + entries:
> + - none
> + - tls
> + - mtls
> +
> attribute-sets:
> + -
> + name: cache-notify
> + attributes:
> + -
> + name: cache-type
> + type: u32
> + enum: cache-type
> -
> name: rpc-status
> attributes:
> @@ -132,6 +176,103 @@ attribute-sets:
> -
> name: npools
> type: u32
> + -
> + name: fslocation
> + attributes:
> + -
> + name: host
> + type: string
> + -
> + name: path
> + type: string
> + -
> + name: fslocations
> + attributes:
> + -
> + name: location
> + type: nest
> + nested-attributes: fslocation
> + multi-attr: true
> + -
> + name: auth-flavor
> + attributes:
> + -
> + name: pseudoflavor
> + type: u32
> + -
> + name: flags
> + type: u32
> + enum: export-flags
> + enum-as-flags: true
> + -
> + name: svc-export-req
> + attributes:
> + -
> + name: seqno
> + type: u64
> + -
> + name: client
> + type: string
> + -
> + name: path
> + type: string
Is the svc-export-req attribute set used for anything?
> + -
> + name: svc-export
> + attributes:
> + -
> + name: seqno
> + type: u64
> + -
> + name: client
> + type: string
> + -
> + name: path
> + type: string
> + -
> + name: negative
> + type: flag
> + -
> + name: expiry
> + type: u64
> + -
> + name: anon-uid
> + type: u32
> + -
> + name: anon-gid
> + type: u32
> + -
> + name: fslocations
> + type: nest
> + nested-attributes: fslocations
> + -
> + name: uuid
> + type: binary
> + -
> + name: secinfo
> + type: nest
> + nested-attributes: auth-flavor
> + multi-attr: true
> + -
> + name: xprtsec
> + type: u32
> + enum: xprtsec-mode
> + multi-attr: true
> + -
> + name: flags
> + type: u32
> + enum: export-flags
> + enum-as-flags: true
> + -
> + name: fsid
> + type: s32
> + -
> + name: svc-export-reqs
> + attributes:
> + -
> + name: requests
> + type: nest
> + nested-attributes: svc-export
> + multi-attr: true
>
> operations:
> list:
> @@ -233,3 +374,36 @@ operations:
> attributes:
> - mode
> - npools
> + -
> + name: cache-notify
> + doc: Notification that there are cache requests that need
> servicing
> + attribute-set: cache-notify
> + mcgrp: exportd
> + event:
> + attributes:
> + - cache-type
> + -
> + name: svc-export-get-reqs
> + doc: Dump all pending svc_export requests
> + attribute-set: svc-export-reqs
> + flags: [admin-perm]
> + dump:
> + request:
> + attributes:
> + - requests
> + -
> + name: svc-export-set-reqs
> + doc: Respond to one or more svc_export requests
> + attribute-set: svc-export-reqs
> + flags: [admin-perm]
> + do:
> + request:
> + attributes:
> + - requests
> +
> +mcast-groups:
> + list:
> + -
> + name: none
> + -
> + name: exportd
--
Chuck Lever
next prev parent reply other threads:[~2026-03-30 14:23 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-25 14:40 [PATCH v2 00/13] nfsd/sunrpc: add support for netlink upcalls for mountd/exportd Jeff Layton
2026-03-25 14:40 ` [PATCH v2 01/13] nfsd: move struct nfsd_genl_rqstp to nfsctl.c Jeff Layton
2026-03-25 14:40 ` [PATCH v2 02/13] sunrpc: rename sunrpc_cache_pipe_upcall() to sunrpc_cache_upcall() Jeff Layton
2026-03-25 14:40 ` [PATCH v2 03/13] sunrpc: rename sunrpc_cache_pipe_upcall_timeout() Jeff Layton
2026-03-25 14:40 ` [PATCH v2 04/13] sunrpc: rename cache_pipe_upcall() to cache_do_upcall() Jeff Layton
2026-03-25 14:40 ` [PATCH v2 05/13] sunrpc: add a cache_notify callback Jeff Layton
2026-03-25 14:40 ` [PATCH v2 06/13] sunrpc: add helpers to count and snapshot pending cache requests Jeff Layton
2026-03-25 14:40 ` [PATCH v2 07/13] sunrpc: add a generic netlink family for cache upcalls Jeff Layton
2026-03-25 14:40 ` [PATCH v2 08/13] sunrpc: add netlink upcall for the auth.unix.ip cache Jeff Layton
2026-03-25 14:40 ` [PATCH v2 09/13] sunrpc: add netlink upcall for the auth.unix.gid cache Jeff Layton
2026-03-25 14:40 ` [PATCH v2 10/13] nfsd: add netlink upcall for the svc_export cache Jeff Layton
2026-03-30 14:22 ` Chuck Lever [this message]
2026-03-30 14:49 ` Jeff Layton
2026-03-30 15:06 ` Chuck Lever
2026-03-25 14:40 ` [PATCH v2 11/13] nfsd: add netlink upcall for the nfsd.fh cache Jeff Layton
2026-03-25 14:40 ` [PATCH v2 12/13] sunrpc: add SUNRPC_CMD_CACHE_FLUSH netlink command Jeff Layton
2026-03-25 14:40 ` [PATCH v2 13/13] nfsd: add NFSD_CMD_CACHE_FLUSH " Jeff Layton
2026-04-02 21:08 ` [PATCH v2 00/13] nfsd/sunrpc: add support for netlink upcalls for mountd/exportd Chuck Lever
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=30ff0483-ec38-40b3-811b-6cd66febe1b1@app.fastmail.com \
--to=cel@kernel.org \
--cc=Dai.Ngo@oracle.com \
--cc=anna@kernel.org \
--cc=chuck.lever@oracle.com \
--cc=davem@davemloft.net \
--cc=donald.hunter@gmail.com \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=jlayton@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=neil@brown.name \
--cc=netdev@vger.kernel.org \
--cc=okorniev@redhat.com \
--cc=pabeni@redhat.com \
--cc=tom@talpey.com \
--cc=trondmy@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox