diff options
Diffstat (limited to 'net/ipv4/tcp.c')
-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 fdf74090a001..6e5617b9f9db 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -2468,10 +2468,11 @@ static int do_tcp_setsockopt(struct sock *sk, int level, | |||
2468 | case TCP_THIN_DUPACK: | 2468 | case TCP_THIN_DUPACK: |
2469 | if (val < 0 || val > 1) | 2469 | if (val < 0 || val > 1) |
2470 | err = -EINVAL; | 2470 | err = -EINVAL; |
2471 | else | 2471 | else { |
2472 | tp->thin_dupack = val; | 2472 | tp->thin_dupack = val; |
2473 | if (tp->thin_dupack) | 2473 | if (tp->thin_dupack) |
2474 | tcp_disable_early_retrans(tp); | 2474 | tcp_disable_early_retrans(tp); |
2475 | } | ||
2475 | break; | 2476 | break; |
2476 | 2477 | ||
2477 | case TCP_REPAIR: | 2478 | case TCP_REPAIR: |