]> git.baikalelectronics.ru Git - 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)
commitb917799fee117cbe44d7c0f31f08cd91d12792a4
tree69036d0cdbfb568233a8838bc1ff9f9b29ab624b
parentbaa186f456d2309b225e45e85f92ad73aee05d43
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