[PATCH v10 5/7] mbuf: add a timestamp to the mbuf for latencystats
From: Remy Horton <hidden>
Date: 2017-02-03 10:33:47
Subsystem:
library code, the rest · Maintainers:
Andrew Morton, Linus Torvalds
From: Remy Horton <hidden>
Date: 2017-02-03 10:33:47
Subsystem:
library code, the rest · Maintainers:
Andrew Morton, Linus Torvalds
From: Harry van Haaren <redacted> This commit adds a uint64_t to the mbuf struct, allowing collection of latency and jitter statistics by measuring packet I/O timestamps. This change is required by the latencystats library. Signed-off-by: Reshma Pattan <redacted> Signed-off-by: Harry van Haaren <redacted> --- lib/librte_mbuf/rte_mbuf.h | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h
index 0d01167..6a8c4f6 100644
--- a/lib/librte_mbuf/rte_mbuf.h
+++ b/lib/librte_mbuf/rte_mbuf.h@@ -512,6 +512,9 @@ struct rte_mbuf { /** Timesync flags for use with IEEE1588. */ uint16_t timesync; + + /** Timestamp for measuring latency. */ + uint64_t timestamp; } __rte_cache_aligned; /**
--
2.5.5