]> 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)
commit61b6d41618af40a66d1d99e7bd38f1f7e2547c16
tree1e106e3c67d27041de995b57bc2ea37ec10465a1
parent23f3791f62fa2607ec2d71e3f146442b6ed6b8a8
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