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)
commit15e5651525c2e580a523568ed207e4a3fb11cc33
tree84ce905be24070575b395394419c2841b10a5431
parentb9565077ae6c8695e3668071b109aecfbf8537c3
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