]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: switch tcp_internal_pacing() to tcp_wstamp_ns
authorEric Dumazet <edumazet@google.com>
Fri, 21 Sep 2018 15:51:53 +0000 (08:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Sep 2018 02:38:00 +0000 (19:38 -0700)
commitc4ea457d71303e23fbe7a74a6c615eddc16e691b
tree57974bfa7d3c72315774558f421ef9a4dec14e45
parente86c165575d2df98949b6c34f1f110117581c657
tcp: switch tcp_internal_pacing() to tcp_wstamp_ns

Now TCP keeps track of tcp_wstamp_ns, recording the earliest
departure time of next packet, we can remove duplicate code
from tcp_internal_pacing()

This removes one ktime_get_tai_ns() call, and a divide.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c