aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtsock.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r--net/sunrpc/xprtsock.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index 6c2f5dcea416..7e5e020fe78d 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -1100,7 +1100,6 @@ int xs_setup_udp(struct rpc_xprt *xprt, struct rpc_timeout *to)
1100 xprt->prot = IPPROTO_UDP; 1100 xprt->prot = IPPROTO_UDP;
1101 xprt->port = XS_MAX_RESVPORT; 1101 xprt->port = XS_MAX_RESVPORT;
1102 xprt->tsh_size = 0; 1102 xprt->tsh_size = 0;
1103 xprt->nocong = 0;
1104 xprt->cwnd = RPC_INITCWND; 1103 xprt->cwnd = RPC_INITCWND;
1105 xprt->resvport = capable(CAP_NET_BIND_SERVICE) ? 1 : 0; 1104 xprt->resvport = capable(CAP_NET_BIND_SERVICE) ? 1 : 0;
1106 /* XXX: header size can vary due to auth type, IPv6, etc. */ 1105 /* XXX: header size can vary due to auth type, IPv6, etc. */
@@ -1140,7 +1139,6 @@ int xs_setup_tcp(struct rpc_xprt *xprt, struct rpc_timeout *to)
1140 xprt->prot = IPPROTO_TCP; 1139 xprt->prot = IPPROTO_TCP;
1141 xprt->port = XS_MAX_RESVPORT; 1140 xprt->port = XS_MAX_RESVPORT;
1142 xprt->tsh_size = sizeof(rpc_fraghdr) / sizeof(u32); 1141 xprt->tsh_size = sizeof(rpc_fraghdr) / sizeof(u32);
1143 xprt->nocong = 1;
1144 xprt->cwnd = RPC_MAXCWND(xprt); 1142 xprt->cwnd = RPC_MAXCWND(xprt);
1145 xprt->resvport = capable(CAP_NET_BIND_SERVICE) ? 1 : 0; 1143 xprt->resvport = capable(CAP_NET_BIND_SERVICE) ? 1 : 0;
1146 xprt->max_payload = RPC_MAX_FRAGMENT_SIZE; 1144 xprt->max_payload = RPC_MAX_FRAGMENT_SIZE;