OSDN Git Service

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)
commitc092dd5f4a7f4e4dbbcc8cf2e50b516bf07e432f
tree57974bfa7d3c72315774558f421ef9a4dec14e45
parentab408b6dc7449c0f791e9e5f8de72fa7428584f2
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