diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index b2f6c74861af..95544e4028c0 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -2454,10 +2454,11 @@ static int do_tcp_setsockopt(struct sock *sk, int level, | |||
2454 | case TCP_THIN_DUPACK: | 2454 | case TCP_THIN_DUPACK: |
2455 | if (val < 0 || val > 1) | 2455 | if (val < 0 || val > 1) |
2456 | err = -EINVAL; | 2456 | err = -EINVAL; |
2457 | else | 2457 | else { |
2458 | tp->thin_dupack = val; | 2458 | tp->thin_dupack = val; |
2459 | if (tp->thin_dupack) | 2459 | if (tp->thin_dupack) |
2460 | tcp_disable_early_retrans(tp); | 2460 | tcp_disable_early_retrans(tp); |
2461 | } | ||
2461 | break; | 2462 | break; |
2462 | 2463 | ||
2463 | case TCP_REPAIR: | 2464 | case TCP_REPAIR: |