]> 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)
commit0ba031db2f47110b548394f4210a8667bcba9afc
tree57974bfa7d3c72315774558f421ef9a4dec14e45
parentf1b1b786274a53cf1ec37eb65b6895869d4e7da9
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