]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: reinitialize MTU probing when setting MSS in a TCP repair
authorDouglas Caetano dos Santos <douglascs@taghos.com.br>
Fri, 26 May 2017 17:28:00 +0000 (14:28 -0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 May 2017 16:28:59 +0000 (12:28 -0400)
commit9c40aa8fec7efe0f0b2cd40d0a21b1e2c8031454
tree84ce905be24070575b395394419c2841b10a5431
parent03284449199a6bd7ceaf66b2644c61bdc2fabbba
tcp: reinitialize MTU probing when setting MSS in a TCP repair

MTU probing initialization occurred only at connect() and at SYN or
SYN-ACK reception, but the former sets MSS to either the default or the
user set value (through TCP_MAXSEG sockopt) and the latter never happens
with repaired sockets.

The result was that, with MTU probing enabled and unless TCP_MAXSEG
sockopt was used before connect(), probing would be stuck at
tcp_base_mss value until tcp_probe_interval seconds have passed.

Signed-off-by: Douglas Caetano dos Santos <douglascs@taghos.com.br>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c