aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/rds/tcp.c')
-rw-r--r--net/rds/tcp.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/net/rds/tcp.c b/net/rds/tcp.c
index c42b60bf4c68..9d6ddbacd875 100644
--- a/net/rds/tcp.c
+++ b/net/rds/tcp.c
@@ -67,21 +67,13 @@ void rds_tcp_nonagle(struct socket *sock)
67 set_fs(oldfs); 67 set_fs(oldfs);
68} 68}
69 69
70/* All module specific customizations to the RDS-TCP socket should be done in
71 * rds_tcp_tune() and applied after socket creation. In general these
72 * customizations should be tunable via module_param()
73 */
70void rds_tcp_tune(struct socket *sock) 74void rds_tcp_tune(struct socket *sock)
71{ 75{
72 struct sock *sk = sock->sk;
73
74 rds_tcp_nonagle(sock); 76 rds_tcp_nonagle(sock);
75
76 /*
77 * We're trying to saturate gigabit with the default,
78 * see svc_sock_setbufsize().
79 */
80 lock_sock(sk);
81 sk->sk_sndbuf = RDS_TCP_DEFAULT_BUFSIZE;
82 sk->sk_rcvbuf = RDS_TCP_DEFAULT_BUFSIZE;
83 sk->sk_userlocks |= SOCK_SNDBUF_LOCK|SOCK_RCVBUF_LOCK;
84 release_sock(sk);
85} 77}
86 78
87u32 rds_tcp_snd_nxt(struct rds_tcp_connection *tc) 79u32 rds_tcp_snd_nxt(struct rds_tcp_connection *tc)