]> git.baikalelectronics.ru Git - kernel.git/commit
NFSD: Ignore client's source port on RDMA transports
authorChuck Lever <chuck.lever@oracle.com>
Mon, 19 May 2014 17:40:22 +0000 (13:40 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 22 May 2014 19:55:48 +0000 (15:55 -0400)
commit4486226005498d0b52a6aed98a9536819ab68373
treeeb964368d663b815cd56163366e4c67ed6bf392e
parent5e04cf3489b98a85811e8872ac00caf20bfa619d
NFSD: Ignore client's source port on RDMA transports

An NFS/RDMA client's source port is meaningless for RDMA transports.
The transport layer typically sets the source port value on the
connection to a random ephemeral port.

Currently, NFS server administrators must specify the "insecure"
export option to enable clients to access exports via RDMA.

But this means NFS clients can access such an export via IP using an
ephemeral port, which may not be desirable.

This patch eliminates the need to specify the "insecure" export
option to allow NFS/RDMA clients access to an export.

BugLink: https://bugzilla.linux-nfs.org/show_bug.cgi?id=250
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
include/linux/sunrpc/svc_xprt.h
net/sunrpc/svc_xprt.c
net/sunrpc/svcsock.c
net/sunrpc/xprtrdma/svc_rdma_transport.c