tcp: provide earliest departure time in skb->tstamp
authorEric Dumazet <edumazet@google.com>
Fri, 21 Sep 2018 15:51:50 +0000 (08:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Sep 2018 02:37:59 +0000 (19:37 -0700)
commitd3edd06ea8ea9e03de6567fda80b8be57e21a537
tree090196833fede243080048ee8d143b3cc83fecd4
parent9799ccb0e984a5c1311b22a212e7ff96e8b736de
tcp: provide earliest departure time in skb->tstamp

Switch internal TCP skb->skb_mstamp to skb->skb_mstamp_ns,
from usec units to nsec units.

Do not clear skb->tstamp before entering IP stacks in TX,
so that qdisc or devices can implement pacing based on the
earliest departure time instead of socket sk->sk_pacing_rate

Packets are fed with tcp_wstamp_ns, and following patch
will update tcp_wstamp_ns when both TCP and sch_fq switch to
the earliest departure time mechanism.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
include/net/tcp.h
net/ipv4/syncookies.c
net/ipv4/tcp.c
net/ipv4/tcp_output.c
net/ipv4/tcp_timer.c