aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2022-09-12 17:22:50 -0400
committerChuck Lever <chuck.lever@oracle.com>2022-09-26 14:02:43 -0400
commitf18d8afbf2fae507fb7246f09fe1de5297c9f11a (patch)
treee5cf52d71176262181998dde84e1bc142add3dec /net
parentNFSD: Reduce amount of struct nfsd4_compoundargs that needs clearing (diff)
downloadlinux-dev-f18d8afbf2fae507fb7246f09fe1de5297c9f11a.tar.xz
linux-dev-f18d8afbf2fae507fb7246f09fe1de5297c9f11a.zip
SUNRPC: Clarify comment that documents svc_max_payload()
Note the function returns a per-transport value, not a per-request value (eg, one that is related to the size of the available send or receive buffer space). Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/svc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c
index 32a537f852fe..149171774bc6 100644
--- a/net/sunrpc/svc.c
+++ b/net/sunrpc/svc.c
@@ -1554,8 +1554,12 @@ out:
EXPORT_SYMBOL_GPL(bc_svc_process);
#endif /* CONFIG_SUNRPC_BACKCHANNEL */
-/*
- * Return (transport-specific) limit on the rpc payload.
+/**
+ * svc_max_payload - Return transport-specific limit on the RPC payload
+ * @rqstp: RPC transaction context
+ *
+ * Returns the maximum number of payload bytes the current transport
+ * allows.
*/
u32 svc_max_payload(const struct svc_rqst *rqstp)
{