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:
committed by
David S. Miller
parent
09c2d251b7
commit
e7fd288538
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user