From 0d57ac4a34cd46fe255bf7f19c0c8c05685cd974 Mon Sep 17 00:00:00 2001 From: John McNamara Date: Thu, 9 Jul 2015 14:30:15 +0100 Subject: [PATCH] mbuf: add ieee1588 timestamping Add mbuf field to store the IEEE1588 RX register index and other flags. The size of the structure is not changed (still 2 cache lines). Signed-off-by: John McNamara --- 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 80419df37a..d5895eae27 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.h @@ -339,6 +339,9 @@ struct rte_mbuf { /** Size of the application private data. In case of an indirect * mbuf, it stores the direct mbuf private data size. */ uint16_t priv_size; + + /** Timesync flags for use with IEEE1588. */ + uint16_t timesync; } __rte_cache_aligned; static inline uint16_t rte_pktmbuf_priv_size(struct rte_mempool *mp);