History

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.

Willem de Bruijn committed 12 years ago

Commit e7fd2881 parent 09c2d256 files · +31 −7Browse files

Showing the changes to include/uapi/linux (2 of 6 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/errqueue.h +1 −0
  2. include/uapi/linux/net_tstamp.h +2 −1
include/uapi/linux/errqueue.h+1−0
@@ -39,6 +39,7 @@ struct scm_timestamping { · 38 unmodified lines
3939 */
4040 enum {
4141 SCM_TSTAMP_SND, /* driver passed skb to NIC, or HW */
42+ SCM_TSTAMP_SCHED, /* data entered the packet scheduler */
4243 };
4344
4445 #endif /* _UAPI_LINUX_ERRQUEUE_H */
include/uapi/linux/net_tstamp.h+2−1
@@ -21,8 +21,9 @@ enum { · 20 unmodified lines
2121 SOF_TIMESTAMPING_SYS_HARDWARE = (1<<5),
2222 SOF_TIMESTAMPING_RAW_HARDWARE = (1<<6),
2323 SOF_TIMESTAMPING_OPT_ID = (1<<7),
24+ SOF_TIMESTAMPING_TX_SCHED = (1<<8),
2425
25− SOF_TIMESTAMPING_LAST = SOF_TIMESTAMPING_OPT_ID,
26+ SOF_TIMESTAMPING_LAST = SOF_TIMESTAMPING_TX_SCHED,
2627 SOF_TIMESTAMPING_MASK = (SOF_TIMESTAMPING_LAST - 1) |
2728 SOF_TIMESTAMPING_LAST
2829 };