]> git.ipfire.org Git - thirdparty/linux.git/commit - net/ipv4/tcp.c
tcp: Fix broken repair socket window probe patch
authorStefan Baranoff <sbaranoff@gmail.com>
Sun, 15 Jul 2018 15:36:37 +0000 (11:36 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jul 2018 21:06:44 +0000 (14:06 -0700)
commit31048d7aedf31bf0f69c54a662944632f29d82f2
tree32de842218f56480c1a6090df6f05a2c47da601e
parent432e629e56432064761be63bcd5e263c0920430d
tcp: Fix broken repair socket window probe patch

Correct previous bad attempt at allowing sockets to come out of TCP
repair without sending window probes. To avoid changing size of
the repair variable in struct tcp_sock, this lets the decision for
sending probes or not to be made when coming out of repair by
introducing two ways to turn it off.

v2:
* Remove erroneous comment; defines now make behavior clear

Fixes: 70b7ff130224 ("tcp: allow user to create repair socket without window probes")
Signed-off-by: Stefan Baranoff <sbaranoff@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Andrei Vagin <avagin@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/tcp.h
net/ipv4/tcp.c