sunrpc: flag transports as having congestion control
authorJeff Layton <jlayton@redhat.com>
Fri, 24 Feb 2017 18:25:23 +0000 (13:25 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 24 Feb 2017 21:55:46 +0000 (16:55 -0500)
commit362142b25843fb059941aaa01b91501d5d8652cc
treed8069aae1c1aa73a17ee47ec0df3391cb01fdee2
parent05a45a2db42543c5f1a32e08f545aebbd7cb4790
sunrpc: flag transports as having congestion control

NFSv4 requires a transport protocol with congestion control in most
cases.

On an IP network, that means that NFSv4 over UDP should be forbidden.

The situation with RDMA is a bit more nuanced, but most RDMA transports
are suitable for this. For now, we assume that all RDMA transports are
suitable, but we may need to revise that at some point.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
include/linux/sunrpc/svc_xprt.h
net/sunrpc/svcsock.c
net/sunrpc/xprtrdma/svc_rdma_transport.c