]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
tcp: refine tcp_tso_should_defer() after EDT adoption
authorEric Dumazet <edumazet@google.com>
Sun, 11 Nov 2018 14:41:30 +0000 (06:41 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Nov 2018 21:54:53 +0000 (13:54 -0800)
commitf1c6ea3827b5e5ec62e297bcf4ccfd065326e8f7
tree69036d0cdbfb568233a8838bc1ff9f9b29ab624b
parent1c09f7d073b1d1ce85765c5552e4b40a6b6ba770
tcp: refine tcp_tso_should_defer() after EDT adoption

tcp_tso_should_defer() last step tries to check if the probable
next ACK packet is coming in less than half rtt.

Problem is that the head->tstamp might be in the future,
so we need to use signed arithmetics to avoid overflows.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c