diff options
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r-- | net/sunrpc/xprtsock.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 17179aa4c207..0b84fab68d7e 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c | |||
@@ -1376,7 +1376,6 @@ int xs_setup_udp(struct rpc_xprt *xprt, struct rpc_timeout *to) | |||
1376 | 1376 | ||
1377 | xprt->prot = IPPROTO_UDP; | 1377 | xprt->prot = IPPROTO_UDP; |
1378 | xprt->tsh_size = 0; | 1378 | xprt->tsh_size = 0; |
1379 | xprt->resvport = capable(CAP_NET_BIND_SERVICE) ? 1 : 0; | ||
1380 | /* XXX: header size can vary due to auth type, IPv6, etc. */ | 1379 | /* XXX: header size can vary due to auth type, IPv6, etc. */ |
1381 | xprt->max_payload = (1U << 16) - (MAX_HEADER << 3); | 1380 | xprt->max_payload = (1U << 16) - (MAX_HEADER << 3); |
1382 | 1381 | ||
@@ -1423,7 +1422,6 @@ int xs_setup_tcp(struct rpc_xprt *xprt, struct rpc_timeout *to) | |||
1423 | 1422 | ||
1424 | xprt->prot = IPPROTO_TCP; | 1423 | xprt->prot = IPPROTO_TCP; |
1425 | xprt->tsh_size = sizeof(rpc_fraghdr) / sizeof(u32); | 1424 | xprt->tsh_size = sizeof(rpc_fraghdr) / sizeof(u32); |
1426 | xprt->resvport = capable(CAP_NET_BIND_SERVICE) ? 1 : 0; | ||
1427 | xprt->max_payload = RPC_MAX_FRAGMENT_SIZE; | 1425 | xprt->max_payload = RPC_MAX_FRAGMENT_SIZE; |
1428 | 1426 | ||
1429 | INIT_WORK(&xprt->connect_worker, xs_tcp_connect_worker, xprt); | 1427 | INIT_WORK(&xprt->connect_worker, xs_tcp_connect_worker, xprt); |