[dpdk-dev] [PATCH v4 2/7] mbuf: add field for ieee1588 timesync index

John McNamara john.mcnamara at intel.com
Thu Jul 9 15:30:15 CEST 2015


Add mbuf field to store the IEEE1588 RX register index and other flags.

Signed-off-by: John McNamara <john.mcnamara at intel.com>
---
 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 80419df..d5895ea 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);
-- 
1.8.1.4



More information about the dev mailing list