summaryrefslogtreecommitdiff
path: root/net/rds
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2012-04-19 03:39:36 +0000
committerDavid S. Miller <davem@davemloft.net>2012-04-21 15:52:25 -0400
commit4a17fd5229c1b6066aa478f6b690f8293ce811a1 (patch)
treef6acd00935d2d7a990befb4c77f57fdf39f46689 /net/rds
parent59c55bdde856c4000bbeb33ba212c3df6f1997a4 (diff)
downloadlinux-3.10-4a17fd5229c1b6066aa478f6b690f8293ce811a1.tar.gz
linux-3.10-4a17fd5229c1b6066aa478f6b690f8293ce811a1.tar.bz2
linux-3.10-4a17fd5229c1b6066aa478f6b690f8293ce811a1.zip
sock: Introduce named constants for sk_reuse
Name them in a "backward compatible" manner, i.e. reuse or not are still 1 and 0 respectively. The reuse value of 2 means that the socket with it will forcibly reuse everyone else's port. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds')
-rw-r--r--net/rds/tcp_listen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rds/tcp_listen.c b/net/rds/tcp_listen.c
index 8b5cc4aa886..72981375f47 100644
--- a/net/rds/tcp_listen.c
+++ b/net/rds/tcp_listen.c
@@ -145,7 +145,7 @@ int rds_tcp_listen_init(void)
if (ret < 0)
goto out;
- sock->sk->sk_reuse = 1;
+ sock->sk->sk_reuse = SK_CAN_REUSE;
rds_tcp_nonagle(sock);
write_lock_bh(&sock->sk->sk_callback_lock);