vdpa/mlx5: support queue update
[dpdk.git] / lib / librte_graph / node.c
index 0652d40..873c9ab 100644 (file)
@@ -61,6 +61,11 @@ __rte_node_register(const struct rte_node_register *reg)
        rte_edge_t i;
        size_t sz;
 
+       /* Limit Node specific metadata to one cacheline on 64B CL machine */
+       RTE_BUILD_BUG_ON((offsetof(struct rte_node, nodes) -
+                         offsetof(struct rte_node, ctx)) !=
+                        RTE_CACHE_LINE_MIN_SIZE);
+
        graph_spinlock_lock();
 
        /* Check sanity */