tcp_cubic: make hystart_ack_delay() aware of BIG TCP
authorEric Dumazet <edumazet@google.com>
Fri, 13 May 2022 18:33:59 +0000 (11:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2022 09:18:56 +0000 (10:18 +0100)
commit9957b38b5e7a44290f669757520ef2a5f5f6ceb8
tree17bb0b50668fe977dd2a4d4670cb35c65862b045
parent34b92e8d19da1e44070dc0ecc2747871469ac534
tcp_cubic: make hystart_ack_delay() aware of BIG TCP

hystart_ack_delay() had the assumption that a TSO packet
would not be bigger than GSO_MAX_SIZE.

This will no longer be true.

We should use sk->sk_gso_max_size instead.

This reduces chances of spurious Hystart ACK train detections.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_cubic.c