aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2015-06-24 05:58:51 -0400
committerDavid S. Miller <davem@davemloft.net>2015-06-24 05:58:51 -0400
commit3a07bd6fead4f00f67b1bf5f551e686661c4f52c (patch)
treef8b8f257d928a9ae1aeb3fdbe748f03f1012f02e /net/ipv4/tcp.c
parent204621551b2a0060a013b92f7add4d5c452fa7cb (diff)
parentf1590670ce069eefeb93916391a67643e6ad1630 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/ethernet/mellanox/mlx4/main.c net/packet/af_packet.c Both conflicts were cases of simple overlapping changes. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r--net/ipv4/tcp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index 697b86dd45b3..7f4056785acc 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -2573,10 +2573,13 @@ static int do_tcp_setsockopt(struct sock *sk, int level,
2573 2573
2574 case TCP_FASTOPEN: 2574 case TCP_FASTOPEN:
2575 if (val >= 0 && ((1 << sk->sk_state) & (TCPF_CLOSE | 2575 if (val >= 0 && ((1 << sk->sk_state) & (TCPF_CLOSE |
2576 TCPF_LISTEN))) 2576 TCPF_LISTEN))) {
2577 tcp_fastopen_init_key_once(true);
2578
2577 err = fastopen_init_queue(sk, val); 2579 err = fastopen_init_queue(sk, val);
2578 else 2580 } else {
2579 err = -EINVAL; 2581 err = -EINVAL;
2582 }
2580 break; 2583 break;
2581 case TCP_TIMESTAMP: 2584 case TCP_TIMESTAMP:
2582 if (!tp->repair) 2585 if (!tp->repair)