mbuf: split mbuf across two cache lines.
[dpdk.git] / lib / librte_mbuf / rte_mbuf.h
index 34900d4..508021b 100644 (file)
@@ -176,7 +176,8 @@ struct rte_mbuf {
                uint32_t sched;   /**< Hierarchical scheduler */
        } hash;                   /**< hash information */
 
-       /* fields only used in slow path or on TX */
+       /* second cache line - fields only used in slow path or on TX */
+       MARKER cacheline1 __rte_cache_aligned;
        struct rte_mempool *pool; /**< Pool from which mbuf was allocated. */
        struct rte_mbuf *next;    /**< Next segment of scattered packet. */