]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a boolean argument to nfscl_reqstart() to indicate that ext_pgs mbufs
authorRick Macklem <rmacklem@FreeBSD.org>
Fri, 26 Jun 2020 03:11:54 +0000 (03:11 +0000)
committerRick Macklem <rmacklem@FreeBSD.org>
Fri, 26 Jun 2020 03:11:54 +0000 (03:11 +0000)
commit4476c1def0fc6b023ab2c4f11e4c52ec09b85cbe
tree2d4da56b52f4efa12dd108c8cd349623a1c3f404
parent94578db2185a012427b80380adc5e418af46723b
Add a boolean argument to nfscl_reqstart() to indicate that ext_pgs mbufs
should be used.

For KERN_TLS (and possibly some other future network interface) the mbuf
list passed into sosend() must be ext_pgs mbufs. The krpc could simply
copy all the mbuf data into ext_pgs mbufs before calling sosend(), but
that would be inefficient for large RPC messages.
This patch adds an argument to nfscl_reqstart() to indicate that it should
fill the RPC message into ext_pgs mbufs.
It also adds fields to "struct nfsrv_descript" needed for building NFS RPC
messages in ext_pgs mbufs, along with new flags for this.

Since the argument is always "false", this commit should not result in any
semantic change. However, this commit prepares the code
for future commits that will add support for building of NFS RPC messages
in ext_pgs mbufs.
sys/fs/nfs/nfs.h
sys/fs/nfs/nfs_commonsubs.c
sys/fs/nfs/nfs_var.h
sys/fs/nfs/nfscl.h
sys/fs/nfsclient/nfs_clrpcops.c
sys/fs/nfsserver/nfs_nfsdport.c