tcp: remove dubious FIN exception from tcp_cwnd_test()
authorEric Dumazet <edumazet@google.com>
Thu, 18 Apr 2024 21:45:58 +0000 (21:45 +0000)
committerJakub Kicinski <kuba@kernel.org>
Mon, 22 Apr 2024 21:25:27 +0000 (14:25 -0700)
commit22555032c513e62fe744d4cdd553539897e8e922
tree00881007c98129efd1e1e4fb3967d47f1f398c4b
parentf62a5e71277293673c77d8c336e4ef8a2ee16050
tcp: remove dubious FIN exception from tcp_cwnd_test()

tcp_cwnd_test() has a special handing for the last packet in
the write queue if it is smaller than one MSS and has the FIN flag.

This is in violation of TCP RFC, and seems quite dubious.

This packet can be sent only if the current CWND is bigger
than the number of packets in flight.

Making tcp_cwnd_test() result independent of the first skb
in the write queue is needed for the last patch of the series.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20240418214600.1291486-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp_output.c