mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
net-timestamp: SCHED timestamp on entering packet scheduler
Kernel transmit latency is often incurred in the packet scheduler. Introduce a new timestamp on transmission just before entering the scheduler. When data travels through multiple devices (bonding, tunneling, ...) each device will export an individual timestamp. Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
09c2d251b7
commit
e7fd288538
6 changed files with 31 additions and 7 deletions
|
@ -617,6 +617,9 @@ void sock_tx_timestamp(struct sock *sk, __u8 *tx_flags)
|
|||
*tx_flags |= SKBTX_HW_TSTAMP;
|
||||
if (sk->sk_tsflags & SOF_TIMESTAMPING_TX_SOFTWARE)
|
||||
*tx_flags |= SKBTX_SW_TSTAMP;
|
||||
if (sk->sk_tsflags & SOF_TIMESTAMPING_TX_SCHED)
|
||||
*tx_flags |= SKBTX_SCHED_TSTAMP;
|
||||
|
||||
if (sock_flag(sk, SOCK_WIFI_STATUS))
|
||||
*tx_flags |= SKBTX_WIFI_STATUS;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue