summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/net_tstamp.h
diff options
context:
space:
mode:
authorWillem de Bruijn2014-08-05 04:11:48 +0200
committerDavid S. Miller2014-08-06 01:35:54 +0200
commite7fd2885385157d46c85f282fc6d7d297db43e1f (patch)
tree14e9d00ed87b2b45882c8cb8dd1b9b4d221724f8 /include/uapi/linux/net_tstamp.h
parentnet-timestamp: add key to disambiguate concurrent datagrams (diff)
downloadkernel-qcow2-linux-e7fd2885385157d46c85f282fc6d7d297db43e1f.tar.gz
kernel-qcow2-linux-e7fd2885385157d46c85f282fc6d7d297db43e1f.tar.xz
kernel-qcow2-linux-e7fd2885385157d46c85f282fc6d7d297db43e1f.zip
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>
Diffstat (limited to 'include/uapi/linux/net_tstamp.h')
-rw-r--r--include/uapi/linux/net_tstamp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/linux/net_tstamp.h b/include/uapi/linux/net_tstamp.h
index 1e861d2e1a31..60733845fcdd 100644
--- a/include/uapi/linux/net_tstamp.h
+++ b/include/uapi/linux/net_tstamp.h
@@ -21,8 +21,9 @@ enum {
SOF_TIMESTAMPING_SYS_HARDWARE = (1<<5),
SOF_TIMESTAMPING_RAW_HARDWARE = (1<<6),
SOF_TIMESTAMPING_OPT_ID = (1<<7),
+ SOF_TIMESTAMPING_TX_SCHED = (1<<8),
- SOF_TIMESTAMPING_LAST = SOF_TIMESTAMPING_OPT_ID,
+ SOF_TIMESTAMPING_LAST = SOF_TIMESTAMPING_TX_SCHED,
SOF_TIMESTAMPING_MASK = (SOF_TIMESTAMPING_LAST - 1) |
SOF_TIMESTAMPING_LAST
};