taprio: Adjust timestamps for TCP packets
authorVedang Patel <vedang.patel@intel.com>
Tue, 25 Jun 2019 22:07:19 +0000 (15:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jun 2019 21:45:34 +0000 (14:45 -0700)
commit54002066100b6d2f731157156c41d853e0c9137e
tree1e106e3c67d27041de995b57bc2ea37ec10465a1
parent7ede7b03484bbb035aa5be98c45a40cfabdc0738
taprio: Adjust timestamps for TCP packets

When the taprio qdisc is running in "txtime offload" mode, it will
set the launchtime value (in skb->tstamp) for all the packets which do
not have the SO_TXTIME socket option. But, the TCP packets already have
this value set and it indicates the earliest departure time represented
in CLOCK_MONOTONIC clock.

We need to respect the timestamp set by the TCP subsystem. So, convert
this time to the clock which taprio is using and ensure that the packet
is not transmitted before the deadline set by TCP.

Signed-off-by: Vedang Patel <vedang.patel@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_taprio.c