]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitac99a1bce4f09abe7cf805b7a30dc576ab1c07b0
tree1e106e3c67d27041de995b57bc2ea37ec10465a1
parentd48f913da14aaae3837a685faa800fb76cbf74c9
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