]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
NFS: Make "port=" mount option optional for RDMA mounts
authorChuck Lever <chuck.lever@oracle.com>
Wed, 19 Dec 2018 15:59:12 +0000 (10:59 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 2 Jan 2019 17:05:17 +0000 (12:05 -0500)
commit0dfbb5f05e7888903e7e1da6c2c4aa017ee1a207
tree3a1c7353352e32d4f08d179e4af96966c2c3de97
parent0a93fbcb16e6b1f36780f9a20d6427f26cec761d
NFS: Make "port=" mount option optional for RDMA mounts

Having to specify "proto=rdma,port=20049" is cumbersome.

RFC 8267 Section 6.3 requires NFSv4 clients to use "the alternative
well-known port number", which is 20049. Make the use of the well-
known port number automatic, just as it is for NFS/TCP and port
2049.

For NFSv2/3, Section 4.2 allows clients to simply choose 20049 as
the default or use rpcbind. I don't know of an NFS/RDMA server
implementation that registers it's NFS/RDMA service with rpcbind,
so automatically choosing 20049 seems like the better choice. The
other widely-deployed NFS/RDMA client, Solaris, also uses 20049
as the default port.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/super.c