DPDK patches and discussions
 help / color / mirror / Atom feed
From: Zhirun Yan <zhirun.yan@intel.com>
To: dev@dpdk.org, jerinj@marvell.com, kirankumark@marvell.com,
	ndabilpuram@marvell.com
Cc: cunming.liang@intel.com, haiyue.wang@intel.com,
	Zhirun Yan <zhirun.yan@intel.com>
Subject: [PATCH v1 01/13] graph: split graph worker into common and default model
Date: Thu, 17 Nov 2022 13:09:14 +0800	[thread overview]
Message-ID: <20221117050926.136974-2-zhirun.yan@intel.com> (raw)
In-Reply-To: <20221117050926.136974-1-zhirun.yan@intel.com>

To support multiple graph worker model, split graph into common
and default. Naming the current walk function as rte_graph_model_rtc
cause the default model is RTC(Run-to-completion).

Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Signed-off-by: Cunming Liang <cunming.liang@intel.com>
Signed-off-by: Zhirun Yan <zhirun.yan@intel.com>
---
 lib/graph/rte_graph_model_rtc.h     |  57 ++++
 lib/graph/rte_graph_worker.h        | 498 +---------------------------
 lib/graph/rte_graph_worker_common.h | 456 +++++++++++++++++++++++++
 3 files changed, 515 insertions(+), 496 deletions(-)
 create mode 100644 lib/graph/rte_graph_model_rtc.h
 create mode 100644 lib/graph/rte_graph_worker_common.h

diff --git a/lib/graph/rte_graph_model_rtc.h b/lib/graph/rte_graph_model_rtc.h
new file mode 100644
index 0000000000..fb58730bde
--- /dev/null
+++ b/lib/graph/rte_graph_model_rtc.h
@@ -0,0 +1,57 @@
+#include "rte_graph_worker_common.h"
+
+/**
+ * Perform graph walk on the circular buffer and invoke the process function
+ * of the nodes and collect the stats.
+ *
+ * @param graph
+ *   Graph pointer returned from rte_graph_lookup function.
+ *
+ * @see rte_graph_lookup()
+ */
+static inline void
+rte_graph_walk_rtc(struct rte_graph *graph)
+{
+	const rte_graph_off_t *cir_start = graph->cir_start;
+	const rte_node_t mask = graph->cir_mask;
+	uint32_t head = graph->head;
+	struct rte_node *node;
+	uint64_t start;
+	uint16_t rc;
+	void **objs;
+
+	/*
+	 * Walk on the source node(s) ((cir_start - head) -> cir_start) and then
+	 * on the pending streams (cir_start -> (cir_start + mask) -> cir_start)
+	 * in a circular buffer fashion.
+	 *
+	 *	+-----+ <= cir_start - head [number of source nodes]
+	 *	|     |
+	 *	| ... | <= source nodes
+	 *	|     |
+	 *	+-----+ <= cir_start [head = 0] [tail = 0]
+	 *	|     |
+	 *	| ... | <= pending streams
+	 *	|     |
+	 *	+-----+ <= cir_start + mask
+	 */
+	while (likely(head != graph->tail)) {
+		node = (struct rte_node *)RTE_PTR_ADD(graph, cir_start[(int32_t)head++]);
+		RTE_ASSERT(node->fence == RTE_GRAPH_FENCE);
+		objs = node->objs;
+		rte_prefetch0(objs);
+
+		if (rte_graph_has_stats_feature()) {
+			start = rte_rdtsc();
+			rc = node->process(graph, node, objs, node->idx);
+			node->total_cycles += rte_rdtsc() - start;
+			node->total_calls++;
+			node->total_objs += rc;
+		} else {
+			node->process(graph, node, objs, node->idx);
+		}
+		node->idx = 0;
+		head = likely((int32_t)head > 0) ? head & mask : head;
+	}
+	graph->tail = 0;
+}
diff --git a/lib/graph/rte_graph_worker.h b/lib/graph/rte_graph_worker.h
index 6dc7461659..54d1390786 100644
--- a/lib/graph/rte_graph_worker.h
+++ b/lib/graph/rte_graph_worker.h
@@ -1,122 +1,4 @@
-/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(C) 2020 Marvell International Ltd.
- */
-
-#ifndef _RTE_GRAPH_WORKER_H_
-#define _RTE_GRAPH_WORKER_H_
-
-/**
- * @file rte_graph_worker.h
- *
- * @warning
- * @b EXPERIMENTAL:
- * All functions in this file may be changed or removed without prior notice.
- *
- * This API allows a worker thread to walk over a graph and nodes to create,
- * process, enqueue and move streams of objects to the next nodes.
- */
-
-#include <rte_common.h>
-#include <rte_cycles.h>
-#include <rte_prefetch.h>
-#include <rte_memcpy.h>
-#include <rte_memory.h>
-
-#include "rte_graph.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * @internal
- *
- * Data structure to hold graph data.
- */
-struct rte_graph {
-	uint32_t tail;		     /**< Tail of circular buffer. */
-	uint32_t head;		     /**< Head of circular buffer. */
-	uint32_t cir_mask;	     /**< Circular buffer wrap around mask. */
-	rte_node_t nb_nodes;	     /**< Number of nodes in the graph. */
-	rte_graph_off_t *cir_start;  /**< Pointer to circular buffer. */
-	rte_graph_off_t nodes_start; /**< Offset at which node memory starts. */
-	rte_graph_t id;	/**< Graph identifier. */
-	int socket;	/**< Socket ID where memory is allocated. */
-	char name[RTE_GRAPH_NAMESIZE];	/**< Name of the graph. */
-	uint64_t fence;			/**< Fence. */
-} __rte_cache_aligned;
-
-/**
- * @internal
- *
- * Data structure to hold node data.
- */
-struct rte_node {
-	/* Slow path area  */
-	uint64_t fence;		/**< Fence. */
-	rte_graph_off_t next;	/**< Index to next node. */
-	rte_node_t id;		/**< Node identifier. */
-	rte_node_t parent_id;	/**< Parent Node identifier. */
-	rte_edge_t nb_edges;	/**< Number of edges from this node. */
-	uint32_t realloc_count;	/**< Number of times realloced. */
-
-	char parent[RTE_NODE_NAMESIZE];	/**< Parent node name. */
-	char name[RTE_NODE_NAMESIZE];	/**< Name of the node. */
-
-	/* Fast path area  */
-#define RTE_NODE_CTX_SZ 16
-	uint8_t ctx[RTE_NODE_CTX_SZ] __rte_cache_aligned; /**< Node Context. */
-	uint16_t size;		/**< Total number of objects available. */
-	uint16_t idx;		/**< Number of objects used. */
-	rte_graph_off_t off;	/**< Offset of node in the graph reel. */
-	uint64_t total_cycles;	/**< Cycles spent in this node. */
-	uint64_t total_calls;	/**< Calls done to this node. */
-	uint64_t total_objs;	/**< Objects processed by this node. */
-	RTE_STD_C11
-		union {
-			void **objs;	   /**< Array of object pointers. */
-			uint64_t objs_u64;
-		};
-	RTE_STD_C11
-		union {
-			rte_node_process_t process; /**< Process function. */
-			uint64_t process_u64;
-		};
-	struct rte_node *nodes[] __rte_cache_min_aligned; /**< Next nodes. */
-} __rte_cache_aligned;
-
-/**
- * @internal
- *
- * Allocate a stream of objects.
- *
- * If stream already exists then re-allocate it to a larger size.
- *
- * @param graph
- *   Pointer to the graph object.
- * @param node
- *   Pointer to the node object.
- */
-__rte_experimental
-void __rte_node_stream_alloc(struct rte_graph *graph, struct rte_node *node);
-
-/**
- * @internal
- *
- * Allocate a stream with requested number of objects.
- *
- * If stream already exists then re-allocate it to a larger size.
- *
- * @param graph
- *   Pointer to the graph object.
- * @param node
- *   Pointer to the node object.
- * @param req_size
- *   Number of objects to be allocated.
- */
-__rte_experimental
-void __rte_node_stream_alloc_size(struct rte_graph *graph,
-				  struct rte_node *node, uint16_t req_size);
+#include "rte_graph_model_rtc.h"
 
 /**
  * Perform graph walk on the circular buffer and invoke the process function
@@ -131,381 +13,5 @@ __rte_experimental
 static inline void
 rte_graph_walk(struct rte_graph *graph)
 {
-	const rte_graph_off_t *cir_start = graph->cir_start;
-	const rte_node_t mask = graph->cir_mask;
-	uint32_t head = graph->head;
-	struct rte_node *node;
-	uint64_t start;
-	uint16_t rc;
-	void **objs;
-
-	/*
-	 * Walk on the source node(s) ((cir_start - head) -> cir_start) and then
-	 * on the pending streams (cir_start -> (cir_start + mask) -> cir_start)
-	 * in a circular buffer fashion.
-	 *
-	 *	+-----+ <= cir_start - head [number of source nodes]
-	 *	|     |
-	 *	| ... | <= source nodes
-	 *	|     |
-	 *	+-----+ <= cir_start [head = 0] [tail = 0]
-	 *	|     |
-	 *	| ... | <= pending streams
-	 *	|     |
-	 *	+-----+ <= cir_start + mask
-	 */
-	while (likely(head != graph->tail)) {
-		node = (struct rte_node *)RTE_PTR_ADD(graph, cir_start[(int32_t)head++]);
-		RTE_ASSERT(node->fence == RTE_GRAPH_FENCE);
-		objs = node->objs;
-		rte_prefetch0(objs);
-
-		if (rte_graph_has_stats_feature()) {
-			start = rte_rdtsc();
-			rc = node->process(graph, node, objs, node->idx);
-			node->total_cycles += rte_rdtsc() - start;
-			node->total_calls++;
-			node->total_objs += rc;
-		} else {
-			node->process(graph, node, objs, node->idx);
-		}
-		node->idx = 0;
-		head = likely((int32_t)head > 0) ? head & mask : head;
-	}
-	graph->tail = 0;
-}
-
-/* Fast path helper functions */
-
-/**
- * @internal
- *
- * Enqueue a given node to the tail of the graph reel.
- *
- * @param graph
- *   Pointer Graph object.
- * @param node
- *   Pointer to node object to be enqueued.
- */
-static __rte_always_inline void
-__rte_node_enqueue_tail_update(struct rte_graph *graph, struct rte_node *node)
-{
-	uint32_t tail;
-
-	tail = graph->tail;
-	graph->cir_start[tail++] = node->off;
-	graph->tail = tail & graph->cir_mask;
-}
-
-/**
- * @internal
- *
- * Enqueue sequence prologue function.
- *
- * Updates the node to tail of graph reel and resizes the number of objects
- * available in the stream as needed.
- *
- * @param graph
- *   Pointer to the graph object.
- * @param node
- *   Pointer to the node object.
- * @param idx
- *   Index at which the object enqueue starts from.
- * @param space
- *   Space required for the object enqueue.
- */
-static __rte_always_inline void
-__rte_node_enqueue_prologue(struct rte_graph *graph, struct rte_node *node,
-			    const uint16_t idx, const uint16_t space)
-{
-
-	/* Add to the pending stream list if the node is new */
-	if (idx == 0)
-		__rte_node_enqueue_tail_update(graph, node);
-
-	if (unlikely(node->size < (idx + space)))
-		__rte_node_stream_alloc_size(graph, node, node->size + space);
-}
-
-/**
- * @internal
- *
- * Get the node pointer from current node edge id.
- *
- * @param node
- *   Current node pointer.
- * @param next
- *   Edge id of the required node.
- *
- * @return
- *   Pointer to the node denoted by the edge id.
- */
-static __rte_always_inline struct rte_node *
-__rte_node_next_node_get(struct rte_node *node, rte_edge_t next)
-{
-	RTE_ASSERT(next < node->nb_edges);
-	RTE_ASSERT(node->fence == RTE_GRAPH_FENCE);
-	node = node->nodes[next];
-	RTE_ASSERT(node->fence == RTE_GRAPH_FENCE);
-
-	return node;
-}
-
-/**
- * Enqueue the objs to next node for further processing and set
- * the next node to pending state in the circular buffer.
- *
- * @param graph
- *   Graph pointer returned from rte_graph_lookup().
- * @param node
- *   Current node pointer.
- * @param next
- *   Relative next node index to enqueue objs.
- * @param objs
- *   Objs to enqueue.
- * @param nb_objs
- *   Number of objs to enqueue.
- */
-__rte_experimental
-static inline void
-rte_node_enqueue(struct rte_graph *graph, struct rte_node *node,
-		 rte_edge_t next, void **objs, uint16_t nb_objs)
-{
-	node = __rte_node_next_node_get(node, next);
-	const uint16_t idx = node->idx;
-
-	__rte_node_enqueue_prologue(graph, node, idx, nb_objs);
-
-	rte_memcpy(&node->objs[idx], objs, nb_objs * sizeof(void *));
-	node->idx = idx + nb_objs;
+	rte_graph_walk_rtc(graph);
 }
-
-/**
- * Enqueue only one obj to next node for further processing and
- * set the next node to pending state in the circular buffer.
- *
- * @param graph
- *   Graph pointer returned from rte_graph_lookup().
- * @param node
- *   Current node pointer.
- * @param next
- *   Relative next node index to enqueue objs.
- * @param obj
- *   Obj to enqueue.
- */
-__rte_experimental
-static inline void
-rte_node_enqueue_x1(struct rte_graph *graph, struct rte_node *node,
-		    rte_edge_t next, void *obj)
-{
-	node = __rte_node_next_node_get(node, next);
-	uint16_t idx = node->idx;
-
-	__rte_node_enqueue_prologue(graph, node, idx, 1);
-
-	node->objs[idx++] = obj;
-	node->idx = idx;
-}
-
-/**
- * Enqueue only two objs to next node for further processing and
- * set the next node to pending state in the circular buffer.
- * Same as rte_node_enqueue_x1 but enqueue two objs.
- *
- * @param graph
- *   Graph pointer returned from rte_graph_lookup().
- * @param node
- *   Current node pointer.
- * @param next
- *   Relative next node index to enqueue objs.
- * @param obj0
- *   Obj to enqueue.
- * @param obj1
- *   Obj to enqueue.
- */
-__rte_experimental
-static inline void
-rte_node_enqueue_x2(struct rte_graph *graph, struct rte_node *node,
-		    rte_edge_t next, void *obj0, void *obj1)
-{
-	node = __rte_node_next_node_get(node, next);
-	uint16_t idx = node->idx;
-
-	__rte_node_enqueue_prologue(graph, node, idx, 2);
-
-	node->objs[idx++] = obj0;
-	node->objs[idx++] = obj1;
-	node->idx = idx;
-}
-
-/**
- * Enqueue only four objs to next node for further processing and
- * set the next node to pending state in the circular buffer.
- * Same as rte_node_enqueue_x1 but enqueue four objs.
- *
- * @param graph
- *   Graph pointer returned from rte_graph_lookup().
- * @param node
- *   Current node pointer.
- * @param next
- *   Relative next node index to enqueue objs.
- * @param obj0
- *   1st obj to enqueue.
- * @param obj1
- *   2nd obj to enqueue.
- * @param obj2
- *   3rd obj to enqueue.
- * @param obj3
- *   4th obj to enqueue.
- */
-__rte_experimental
-static inline void
-rte_node_enqueue_x4(struct rte_graph *graph, struct rte_node *node,
-		    rte_edge_t next, void *obj0, void *obj1, void *obj2,
-		    void *obj3)
-{
-	node = __rte_node_next_node_get(node, next);
-	uint16_t idx = node->idx;
-
-	__rte_node_enqueue_prologue(graph, node, idx, 4);
-
-	node->objs[idx++] = obj0;
-	node->objs[idx++] = obj1;
-	node->objs[idx++] = obj2;
-	node->objs[idx++] = obj3;
-	node->idx = idx;
-}
-
-/**
- * Enqueue objs to multiple next nodes for further processing and
- * set the next nodes to pending state in the circular buffer.
- * objs[i] will be enqueued to nexts[i].
- *
- * @param graph
- *   Graph pointer returned from rte_graph_lookup().
- * @param node
- *   Current node pointer.
- * @param nexts
- *   List of relative next node indices to enqueue objs.
- * @param objs
- *   List of objs to enqueue.
- * @param nb_objs
- *   Number of objs to enqueue.
- */
-__rte_experimental
-static inline void
-rte_node_enqueue_next(struct rte_graph *graph, struct rte_node *node,
-		      rte_edge_t *nexts, void **objs, uint16_t nb_objs)
-{
-	uint16_t i;
-
-	for (i = 0; i < nb_objs; i++)
-		rte_node_enqueue_x1(graph, node, nexts[i], objs[i]);
-}
-
-/**
- * Get the stream of next node to enqueue the objs.
- * Once done with the updating the objs, needs to call
- * rte_node_next_stream_put to put the next node to pending state.
- *
- * @param graph
- *   Graph pointer returned from rte_graph_lookup().
- * @param node
- *   Current node pointer.
- * @param next
- *   Relative next node index to get stream.
- * @param nb_objs
- *   Requested free size of the next stream.
- *
- * @return
- *   Valid next stream on success.
- *
- * @see rte_node_next_stream_put().
- */
-__rte_experimental
-static inline void **
-rte_node_next_stream_get(struct rte_graph *graph, struct rte_node *node,
-			 rte_edge_t next, uint16_t nb_objs)
-{
-	node = __rte_node_next_node_get(node, next);
-	const uint16_t idx = node->idx;
-	uint16_t free_space = node->size - idx;
-
-	if (unlikely(free_space < nb_objs))
-		__rte_node_stream_alloc_size(graph, node, node->size + nb_objs);
-
-	return &node->objs[idx];
-}
-
-/**
- * Put the next stream to pending state in the circular buffer
- * for further processing. Should be invoked after rte_node_next_stream_get().
- *
- * @param graph
- *   Graph pointer returned from rte_graph_lookup().
- * @param node
- *   Current node pointer.
- * @param next
- *   Relative next node index..
- * @param idx
- *   Number of objs updated in the stream after getting the stream using
- *   rte_node_next_stream_get.
- *
- * @see rte_node_next_stream_get().
- */
-__rte_experimental
-static inline void
-rte_node_next_stream_put(struct rte_graph *graph, struct rte_node *node,
-			 rte_edge_t next, uint16_t idx)
-{
-	if (unlikely(!idx))
-		return;
-
-	node = __rte_node_next_node_get(node, next);
-	if (node->idx == 0)
-		__rte_node_enqueue_tail_update(graph, node);
-
-	node->idx += idx;
-}
-
-/**
- * Home run scenario, Enqueue all the objs of current node to next
- * node in optimized way by swapping the streams of both nodes.
- * Performs good when next node is already not in pending state.
- * If next node is already in pending state then normal enqueue
- * will be used.
- *
- * @param graph
- *   Graph pointer returned from rte_graph_lookup().
- * @param src
- *   Current node pointer.
- * @param next
- *   Relative next node index.
- */
-__rte_experimental
-static inline void
-rte_node_next_stream_move(struct rte_graph *graph, struct rte_node *src,
-			  rte_edge_t next)
-{
-	struct rte_node *dst = __rte_node_next_node_get(src, next);
-
-	/* Let swap the pointers if dst don't have valid objs */
-	if (likely(dst->idx == 0)) {
-		void **dobjs = dst->objs;
-		uint16_t dsz = dst->size;
-		dst->objs = src->objs;
-		dst->size = src->size;
-		src->objs = dobjs;
-		src->size = dsz;
-		dst->idx = src->idx;
-		__rte_node_enqueue_tail_update(graph, dst);
-	} else { /* Move the objects from src node to dst node */
-		rte_node_enqueue(graph, src, next, src->objs, src->idx);
-	}
-}
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _RTE_GRAPH_WORKER_H_ */
diff --git a/lib/graph/rte_graph_worker_common.h b/lib/graph/rte_graph_worker_common.h
new file mode 100644
index 0000000000..91a5de7fa4
--- /dev/null
+++ b/lib/graph/rte_graph_worker_common.h
@@ -0,0 +1,456 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(C) 2020 Marvell International Ltd.
+ */
+
+#ifndef _RTE_GRAPH_WORKER_COMMON_H_
+#define _RTE_GRAPH_WORKER_COMMON_H_
+
+/**
+ * @file rte_graph_worker.h
+ *
+ * @warning
+ * @b EXPERIMENTAL:
+ * All functions in this file may be changed or removed without prior notice.
+ *
+ * This API allows a worker thread to walk over a graph and nodes to create,
+ * process, enqueue and move streams of objects to the next nodes.
+ */
+
+#include <rte_common.h>
+#include <rte_cycles.h>
+#include <rte_prefetch.h>
+#include <rte_memcpy.h>
+#include <rte_memory.h>
+
+#include "rte_graph.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @internal
+ *
+ * Data structure to hold graph data.
+ */
+struct rte_graph {
+	uint32_t tail;		     /**< Tail of circular buffer. */
+	uint32_t head;		     /**< Head of circular buffer. */
+	uint32_t cir_mask;	     /**< Circular buffer wrap around mask. */
+	rte_node_t nb_nodes;	     /**< Number of nodes in the graph. */
+	rte_graph_off_t *cir_start;  /**< Pointer to circular buffer. */
+	rte_graph_off_t nodes_start; /**< Offset at which node memory starts. */
+	rte_graph_t id;	/**< Graph identifier. */
+	int socket;	/**< Socket ID where memory is allocated. */
+	char name[RTE_GRAPH_NAMESIZE];	/**< Name of the graph. */
+	uint64_t fence;			/**< Fence. */
+} __rte_cache_aligned;
+
+/**
+ * @internal
+ *
+ * Data structure to hold node data.
+ */
+struct rte_node {
+	/* Slow path area  */
+	uint64_t fence;		/**< Fence. */
+	rte_graph_off_t next;	/**< Index to next node. */
+	rte_node_t id;		/**< Node identifier. */
+	rte_node_t parent_id;	/**< Parent Node identifier. */
+	rte_edge_t nb_edges;	/**< Number of edges from this node. */
+	uint32_t realloc_count;	/**< Number of times realloced. */
+
+	char parent[RTE_NODE_NAMESIZE];	/**< Parent node name. */
+	char name[RTE_NODE_NAMESIZE];	/**< Name of the node. */
+
+	/* Fast path area  */
+#define RTE_NODE_CTX_SZ 16
+	uint8_t ctx[RTE_NODE_CTX_SZ] __rte_cache_aligned; /**< Node Context. */
+	uint16_t size;		/**< Total number of objects available. */
+	uint16_t idx;		/**< Number of objects used. */
+	rte_graph_off_t off;	/**< Offset of node in the graph reel. */
+	uint64_t total_cycles;	/**< Cycles spent in this node. */
+	uint64_t total_calls;	/**< Calls done to this node. */
+	uint64_t total_objs;	/**< Objects processed by this node. */
+
+	RTE_STD_C11
+		union {
+			void **objs;	   /**< Array of object pointers. */
+			uint64_t objs_u64;
+		};
+	RTE_STD_C11
+		union {
+			rte_node_process_t process; /**< Process function. */
+			uint64_t process_u64;
+		};
+	struct rte_node *nodes[] __rte_cache_min_aligned; /**< Next nodes. */
+} __rte_cache_aligned;
+
+/**
+ * @internal
+ *
+ * Allocate a stream of objects.
+ *
+ * If stream already exists then re-allocate it to a larger size.
+ *
+ * @param graph
+ *   Pointer to the graph object.
+ * @param node
+ *   Pointer to the node object.
+ */
+__rte_experimental
+void __rte_node_stream_alloc(struct rte_graph *graph, struct rte_node *node);
+
+/**
+ * @internal
+ *
+ * Allocate a stream with requested number of objects.
+ *
+ * If stream already exists then re-allocate it to a larger size.
+ *
+ * @param graph
+ *   Pointer to the graph object.
+ * @param node
+ *   Pointer to the node object.
+ * @param req_size
+ *   Number of objects to be allocated.
+ */
+__rte_experimental
+void __rte_node_stream_alloc_size(struct rte_graph *graph,
+				  struct rte_node *node, uint16_t req_size);
+
+/* Fast path helper functions */
+
+/**
+ * @internal
+ *
+ * Enqueue a given node to the tail of the graph reel.
+ *
+ * @param graph
+ *   Pointer Graph object.
+ * @param node
+ *   Pointer to node object to be enqueued.
+ */
+static __rte_always_inline void
+__rte_node_enqueue_tail_update(struct rte_graph *graph, struct rte_node *node)
+{
+	uint32_t tail;
+
+	tail = graph->tail;
+	graph->cir_start[tail++] = node->off;
+	graph->tail = tail & graph->cir_mask;
+}
+
+/**
+ * @internal
+ *
+ * Enqueue sequence prologue function.
+ *
+ * Updates the node to tail of graph reel and resizes the number of objects
+ * available in the stream as needed.
+ *
+ * @param graph
+ *   Pointer to the graph object.
+ * @param node
+ *   Pointer to the node object.
+ * @param idx
+ *   Index at which the object enqueue starts from.
+ * @param space
+ *   Space required for the object enqueue.
+ */
+static __rte_always_inline void
+__rte_node_enqueue_prologue(struct rte_graph *graph, struct rte_node *node,
+			    const uint16_t idx, const uint16_t space)
+{
+
+	/* Add to the pending stream list if the node is new */
+	if (idx == 0)
+		__rte_node_enqueue_tail_update(graph, node);
+
+	if (unlikely(node->size < (idx + space)))
+		__rte_node_stream_alloc_size(graph, node, node->size + space);
+}
+
+/**
+ * @internal
+ *
+ * Get the node pointer from current node edge id.
+ *
+ * @param node
+ *   Current node pointer.
+ * @param next
+ *   Edge id of the required node.
+ *
+ * @return
+ *   Pointer to the node denoted by the edge id.
+ */
+static __rte_always_inline struct rte_node *
+__rte_node_next_node_get(struct rte_node *node, rte_edge_t next)
+{
+	RTE_ASSERT(next < node->nb_edges);
+	RTE_ASSERT(node->fence == RTE_GRAPH_FENCE);
+	node = node->nodes[next];
+	RTE_ASSERT(node->fence == RTE_GRAPH_FENCE);
+
+	return node;
+}
+
+/**
+ * Enqueue the objs to next node for further processing and set
+ * the next node to pending state in the circular buffer.
+ *
+ * @param graph
+ *   Graph pointer returned from rte_graph_lookup().
+ * @param node
+ *   Current node pointer.
+ * @param next
+ *   Relative next node index to enqueue objs.
+ * @param objs
+ *   Objs to enqueue.
+ * @param nb_objs
+ *   Number of objs to enqueue.
+ */
+__rte_experimental
+static inline void
+rte_node_enqueue(struct rte_graph *graph, struct rte_node *node,
+		 rte_edge_t next, void **objs, uint16_t nb_objs)
+{
+	node = __rte_node_next_node_get(node, next);
+	const uint16_t idx = node->idx;
+
+	__rte_node_enqueue_prologue(graph, node, idx, nb_objs);
+
+	rte_memcpy(&node->objs[idx], objs, nb_objs * sizeof(void *));
+	node->idx = idx + nb_objs;
+}
+
+/**
+ * Enqueue only one obj to next node for further processing and
+ * set the next node to pending state in the circular buffer.
+ *
+ * @param graph
+ *   Graph pointer returned from rte_graph_lookup().
+ * @param node
+ *   Current node pointer.
+ * @param next
+ *   Relative next node index to enqueue objs.
+ * @param obj
+ *   Obj to enqueue.
+ */
+__rte_experimental
+static inline void
+rte_node_enqueue_x1(struct rte_graph *graph, struct rte_node *node,
+		    rte_edge_t next, void *obj)
+{
+	node = __rte_node_next_node_get(node, next);
+	uint16_t idx = node->idx;
+
+	__rte_node_enqueue_prologue(graph, node, idx, 1);
+
+	node->objs[idx++] = obj;
+	node->idx = idx;
+}
+
+/**
+ * Enqueue only two objs to next node for further processing and
+ * set the next node to pending state in the circular buffer.
+ * Same as rte_node_enqueue_x1 but enqueue two objs.
+ *
+ * @param graph
+ *   Graph pointer returned from rte_graph_lookup().
+ * @param node
+ *   Current node pointer.
+ * @param next
+ *   Relative next node index to enqueue objs.
+ * @param obj0
+ *   Obj to enqueue.
+ * @param obj1
+ *   Obj to enqueue.
+ */
+__rte_experimental
+static inline void
+rte_node_enqueue_x2(struct rte_graph *graph, struct rte_node *node,
+		    rte_edge_t next, void *obj0, void *obj1)
+{
+	node = __rte_node_next_node_get(node, next);
+	uint16_t idx = node->idx;
+
+	__rte_node_enqueue_prologue(graph, node, idx, 2);
+
+	node->objs[idx++] = obj0;
+	node->objs[idx++] = obj1;
+	node->idx = idx;
+}
+
+/**
+ * Enqueue only four objs to next node for further processing and
+ * set the next node to pending state in the circular buffer.
+ * Same as rte_node_enqueue_x1 but enqueue four objs.
+ *
+ * @param graph
+ *   Graph pointer returned from rte_graph_lookup().
+ * @param node
+ *   Current node pointer.
+ * @param next
+ *   Relative next node index to enqueue objs.
+ * @param obj0
+ *   1st obj to enqueue.
+ * @param obj1
+ *   2nd obj to enqueue.
+ * @param obj2
+ *   3rd obj to enqueue.
+ * @param obj3
+ *   4th obj to enqueue.
+ */
+__rte_experimental
+static inline void
+rte_node_enqueue_x4(struct rte_graph *graph, struct rte_node *node,
+		    rte_edge_t next, void *obj0, void *obj1, void *obj2,
+		    void *obj3)
+{
+	node = __rte_node_next_node_get(node, next);
+	uint16_t idx = node->idx;
+
+	__rte_node_enqueue_prologue(graph, node, idx, 4);
+
+	node->objs[idx++] = obj0;
+	node->objs[idx++] = obj1;
+	node->objs[idx++] = obj2;
+	node->objs[idx++] = obj3;
+	node->idx = idx;
+}
+
+/**
+ * Enqueue objs to multiple next nodes for further processing and
+ * set the next nodes to pending state in the circular buffer.
+ * objs[i] will be enqueued to nexts[i].
+ *
+ * @param graph
+ *   Graph pointer returned from rte_graph_lookup().
+ * @param node
+ *   Current node pointer.
+ * @param nexts
+ *   List of relative next node indices to enqueue objs.
+ * @param objs
+ *   List of objs to enqueue.
+ * @param nb_objs
+ *   Number of objs to enqueue.
+ */
+__rte_experimental
+static inline void
+rte_node_enqueue_next(struct rte_graph *graph, struct rte_node *node,
+		      rte_edge_t *nexts, void **objs, uint16_t nb_objs)
+{
+	uint16_t i;
+
+	for (i = 0; i < nb_objs; i++)
+		rte_node_enqueue_x1(graph, node, nexts[i], objs[i]);
+}
+
+/**
+ * Get the stream of next node to enqueue the objs.
+ * Once done with the updating the objs, needs to call
+ * rte_node_next_stream_put to put the next node to pending state.
+ *
+ * @param graph
+ *   Graph pointer returned from rte_graph_lookup().
+ * @param node
+ *   Current node pointer.
+ * @param next
+ *   Relative next node index to get stream.
+ * @param nb_objs
+ *   Requested free size of the next stream.
+ *
+ * @return
+ *   Valid next stream on success.
+ *
+ * @see rte_node_next_stream_put().
+ */
+__rte_experimental
+static inline void **
+rte_node_next_stream_get(struct rte_graph *graph, struct rte_node *node,
+			 rte_edge_t next, uint16_t nb_objs)
+{
+	node = __rte_node_next_node_get(node, next);
+	const uint16_t idx = node->idx;
+	uint16_t free_space = node->size - idx;
+
+	if (unlikely(free_space < nb_objs))
+		__rte_node_stream_alloc_size(graph, node, node->size + nb_objs);
+
+	return &node->objs[idx];
+}
+
+/**
+ * Put the next stream to pending state in the circular buffer
+ * for further processing. Should be invoked after rte_node_next_stream_get().
+ *
+ * @param graph
+ *   Graph pointer returned from rte_graph_lookup().
+ * @param node
+ *   Current node pointer.
+ * @param next
+ *   Relative next node index..
+ * @param idx
+ *   Number of objs updated in the stream after getting the stream using
+ *   rte_node_next_stream_get.
+ *
+ * @see rte_node_next_stream_get().
+ */
+__rte_experimental
+static inline void
+rte_node_next_stream_put(struct rte_graph *graph, struct rte_node *node,
+			 rte_edge_t next, uint16_t idx)
+{
+	if (unlikely(!idx))
+		return;
+
+	node = __rte_node_next_node_get(node, next);
+	if (node->idx == 0)
+		__rte_node_enqueue_tail_update(graph, node);
+
+	node->idx += idx;
+}
+
+/**
+ * Home run scenario, Enqueue all the objs of current node to next
+ * node in optimized way by swapping the streams of both nodes.
+ * Performs good when next node is already not in pending state.
+ * If next node is already in pending state then normal enqueue
+ * will be used.
+ *
+ * @param graph
+ *   Graph pointer returned from rte_graph_lookup().
+ * @param src
+ *   Current node pointer.
+ * @param next
+ *   Relative next node index.
+ */
+__rte_experimental
+static inline void
+rte_node_next_stream_move(struct rte_graph *graph, struct rte_node *src,
+			  rte_edge_t next)
+{
+	struct rte_node *dst = __rte_node_next_node_get(src, next);
+
+	/* Let swap the pointers if dst don't have valid objs */
+	if (likely(dst->idx == 0)) {
+		void **dobjs = dst->objs;
+		uint16_t dsz = dst->size;
+
+		dst->objs = src->objs;
+		dst->size = src->size;
+		src->objs = dobjs;
+		src->size = dsz;
+		dst->idx = src->idx;
+		__rte_node_enqueue_tail_update(graph, dst);
+	} else { /* Move the objects from src node to dst node */
+		rte_node_enqueue(graph, src, next, src->objs, src->idx);
+	}
+}
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _RTE_GRAPH_WORKER_COMMON_H_ */
-- 
2.25.1


  reply	other threads:[~2022-11-17  5:09 UTC|newest]

Thread overview: 369+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-17  5:09 [PATCH v1 00/13] graph enhancement for multi-core dispatch Zhirun Yan
2022-11-17  5:09 ` Zhirun Yan [this message]
2023-02-20 13:38   ` [PATCH v1 01/13] graph: split graph worker into common and default model Jerin Jacob
2023-02-24  6:29     ` Yan, Zhirun
2022-11-17  5:09 ` [PATCH v1 02/13] graph: move node process into inline function Zhirun Yan
2023-02-20 13:39   ` Jerin Jacob
2022-11-17  5:09 ` [PATCH v1 03/13] graph: add macro to walk on graph circular buffer Zhirun Yan
2023-02-20 13:45   ` Jerin Jacob
2023-02-24  6:30     ` Yan, Zhirun
2022-11-17  5:09 ` [PATCH v1 04/13] graph: add get/set graph worker model APIs Zhirun Yan
2022-12-06  3:35   ` [EXT] " Kiran Kumar Kokkilagadda
2022-12-08  7:26     ` Yan, Zhirun
2023-02-20 13:50   ` Jerin Jacob
2023-02-24  6:31     ` Yan, Zhirun
2023-02-26 22:23       ` Jerin Jacob
2023-03-02  8:38         ` Yan, Zhirun
2023-03-02 13:58           ` Jerin Jacob
2023-03-07  8:26             ` Yan, Zhirun
2022-11-17  5:09 ` [PATCH v1 05/13] graph: introduce core affinity API Zhirun Yan
2023-02-20 14:05   ` Jerin Jacob
2023-02-24  6:32     ` Yan, Zhirun
2022-11-17  5:09 ` [PATCH v1 06/13] graph: introduce graph " Zhirun Yan
2023-02-20 14:07   ` Jerin Jacob
2023-02-24  6:39     ` Yan, Zhirun
2022-11-17  5:09 ` [PATCH v1 07/13] graph: introduce graph clone API for other worker core Zhirun Yan
2022-11-17  5:09 ` [PATCH v1 08/13] graph: introduce stream moving cross cores Zhirun Yan
2023-02-20 14:17   ` Jerin Jacob
2023-02-24  6:48     ` Yan, Zhirun
2022-11-17  5:09 ` [PATCH v1 09/13] graph: enable create and destroy graph scheduling workqueue Zhirun Yan
2022-11-17  5:09 ` [PATCH v1 10/13] graph: introduce graph walk by cross-core dispatch Zhirun Yan
2022-11-17  5:09 ` [PATCH v1 11/13] graph: enable graph generic scheduler model Zhirun Yan
2022-11-17  5:09 ` [PATCH v1 12/13] graph: add stats for corss-core dispatching Zhirun Yan
2022-11-17  5:09 ` [PATCH v1 13/13] examples/l3fwd-graph: introduce generic worker model Zhirun Yan
2023-02-20 14:20   ` Jerin Jacob
2023-02-24  6:49     ` Yan, Zhirun
2023-02-20  0:22 ` [PATCH v1 00/13] graph enhancement for multi-core dispatch Thomas Monjalon
2023-02-20  8:28   ` Yan, Zhirun
2023-02-20  9:33     ` Jerin Jacob
2023-03-24  2:16 ` [PATCH v2 00/15] " Zhirun Yan
2023-03-24  2:16   ` [PATCH v2 01/15] graph: rename rte_graph_work as common Zhirun Yan
2023-03-24  2:16   ` [PATCH v2 02/15] graph: split graph worker into common and default model Zhirun Yan
2023-03-24  2:16   ` [PATCH v2 03/15] graph: move node process into inline function Zhirun Yan
2023-03-24  2:16   ` [PATCH v2 04/15] graph: add get/set graph worker model APIs Zhirun Yan
2023-03-24  2:16   ` [PATCH v2 05/15] graph: introduce graph node core affinity API Zhirun Yan
2023-03-24  2:16   ` [PATCH v2 06/15] graph: introduce graph bind unbind API Zhirun Yan
2023-03-24  2:16   ` [PATCH v2 07/15] graph: introduce graph clone API for other worker core Zhirun Yan
2023-03-24  2:16   ` [PATCH v2 08/15] graph: add struct for stream moving between cores Zhirun Yan
2023-03-24  2:16   ` [PATCH v2 09/15] graph: introduce stream moving cross cores Zhirun Yan
2023-03-24  2:16   ` [PATCH v2 10/15] graph: enable create and destroy graph scheduling workqueue Zhirun Yan
2023-03-24  2:16   ` [PATCH v2 11/15] graph: introduce graph walk by cross-core dispatch Zhirun Yan
2023-03-24  2:16   ` [PATCH v2 12/15] graph: enable graph multicore dispatch scheduler model Zhirun Yan
2023-03-24  2:16   ` [PATCH v2 13/15] graph: add stats for corss-core dispatching Zhirun Yan
2023-03-24  2:16   ` [PATCH v2 14/15] examples/l3fwd-graph: introduce multicore dispatch worker model Zhirun Yan
2023-03-24  2:16   ` [PATCH v2 15/15] doc: update multicore dispatch model in graph guides Zhirun Yan
2023-03-29  6:43   ` [PATCH v3 00/15] graph enhancement for multi-core dispatch Zhirun Yan
2023-03-29  6:43     ` [PATCH v3 01/15] graph: rename rte_graph_work as common Zhirun Yan
2023-03-29  6:43     ` [PATCH v3 02/15] graph: split graph worker into common and default model Zhirun Yan
2023-03-29  6:43     ` [PATCH v3 03/15] graph: move node process into inline function Zhirun Yan
2023-03-29 15:34       ` Stephen Hemminger
2023-03-29 15:41         ` Jerin Jacob
2023-03-29  6:43     ` [PATCH v3 04/15] graph: add get/set graph worker model APIs Zhirun Yan
2023-03-29 15:35       ` Stephen Hemminger
2023-03-30  3:37         ` Yan, Zhirun
2023-03-29  6:43     ` [PATCH v3 05/15] graph: introduce graph node core affinity API Zhirun Yan
2023-03-29  6:43     ` [PATCH v3 06/15] graph: introduce graph bind unbind API Zhirun Yan
2023-03-29  6:43     ` [PATCH v3 07/15] graph: introduce graph clone API for other worker core Zhirun Yan
2023-03-29  6:43     ` [PATCH v3 08/15] graph: add struct for stream moving between cores Zhirun Yan
2023-03-29  6:43     ` [PATCH v3 09/15] graph: introduce stream moving cross cores Zhirun Yan
2023-03-29  6:43     ` [PATCH v3 10/15] graph: enable create and destroy graph scheduling workqueue Zhirun Yan
2023-03-29  6:43     ` [PATCH v3 11/15] graph: introduce graph walk by cross-core dispatch Zhirun Yan
2023-03-29  6:43     ` [PATCH v3 12/15] graph: enable graph multicore dispatch scheduler model Zhirun Yan
2023-03-29  6:43     ` [PATCH v3 13/15] graph: add stats for cross-core dispatching Zhirun Yan
2023-03-29  6:43     ` [PATCH v3 14/15] examples/l3fwd-graph: introduce multicore dispatch worker model Zhirun Yan
2023-03-29  6:43     ` [PATCH v3 15/15] doc: update multicore dispatch model in graph guides Zhirun Yan
2023-03-30  6:18     ` [PATCH v4 00/15] graph enhancement for multi-core dispatch Zhirun Yan
2023-03-30  6:18       ` [PATCH v4 01/15] graph: rename rte_graph_work as common Zhirun Yan
2023-03-30  6:18       ` [PATCH v4 02/15] graph: split graph worker into common and default model Zhirun Yan
2023-03-30  6:18       ` [PATCH v4 03/15] graph: move node process into inline function Zhirun Yan
2023-03-30  6:18       ` [PATCH v4 04/15] graph: add get/set graph worker model APIs Zhirun Yan
2023-03-30  6:18       ` [PATCH v4 05/15] graph: introduce graph node core affinity API Zhirun Yan
2023-03-30  6:18       ` [PATCH v4 06/15] graph: introduce graph bind unbind API Zhirun Yan
2023-03-30  6:18       ` [PATCH v4 07/15] graph: introduce graph clone API for other worker core Zhirun Yan
2023-03-30  6:18       ` [PATCH v4 08/15] graph: add struct for stream moving between cores Zhirun Yan
2023-03-30  6:18       ` [PATCH v4 09/15] graph: introduce stream moving cross cores Zhirun Yan
2023-03-30  6:18       ` [PATCH v4 10/15] graph: enable create and destroy graph scheduling workqueue Zhirun Yan
2023-03-30  6:18       ` [PATCH v4 11/15] graph: introduce graph walk by cross-core dispatch Zhirun Yan
2023-03-30  6:18       ` [PATCH v4 12/15] graph: enable graph multicore dispatch scheduler model Zhirun Yan
2023-03-30  6:18       ` [PATCH v4 13/15] graph: add stats for cross-core dispatching Zhirun Yan
2023-03-30  6:18       ` [PATCH v4 14/15] examples/l3fwd-graph: introduce multicore dispatch worker model Zhirun Yan
2023-03-30  6:18       ` [PATCH v4 15/15] doc: update multicore dispatch model in graph guides Zhirun Yan
2023-03-31  4:02       ` [PATCH v5 00/15] graph enhancement for multi-core dispatch Zhirun Yan
2023-03-31  4:02         ` [PATCH v5 01/15] graph: rename rte_graph_work as common Zhirun Yan
2023-03-31  4:02         ` [PATCH v5 02/15] graph: split graph worker into common and default model Zhirun Yan
2023-04-27 14:11           ` [EXT] " Pavan Nikhilesh Bhagavatula
2023-05-05  2:09             ` Yan, Zhirun
2023-03-31  4:02         ` [PATCH v5 03/15] graph: move node process into inline function Zhirun Yan
2023-04-27 15:03           ` [EXT] " Pavan Nikhilesh Bhagavatula
2023-05-05  2:10             ` Yan, Zhirun
2023-03-31  4:02         ` [PATCH v5 04/15] graph: add get/set graph worker model APIs Zhirun Yan
2023-03-31  4:02         ` [PATCH v5 05/15] graph: introduce graph node core affinity API Zhirun Yan
2023-03-31  4:02         ` [PATCH v5 06/15] graph: introduce graph bind unbind API Zhirun Yan
2023-03-31  4:02         ` [PATCH v5 07/15] graph: introduce graph clone API for other worker core Zhirun Yan
2023-03-31  4:02         ` [PATCH v5 08/15] graph: add struct for stream moving between cores Zhirun Yan
2023-03-31  4:03         ` [PATCH v5 09/15] graph: introduce stream moving cross cores Zhirun Yan
2023-04-27 14:52           ` [EXT] " Pavan Nikhilesh Bhagavatula
2023-05-05  2:10             ` Yan, Zhirun
2023-03-31  4:03         ` [PATCH v5 10/15] graph: enable create and destroy graph scheduling workqueue Zhirun Yan
2023-03-31  4:03         ` [PATCH v5 11/15] graph: introduce graph walk by cross-core dispatch Zhirun Yan
2023-04-27 14:58           ` [EXT] " Pavan Nikhilesh Bhagavatula
2023-05-05  2:09             ` Yan, Zhirun
2023-03-31  4:03         ` [PATCH v5 12/15] graph: enable graph multicore dispatch scheduler model Zhirun Yan
2023-03-31  4:03         ` [PATCH v5 13/15] graph: add stats for cross-core dispatching Zhirun Yan
2023-03-31  4:03         ` [PATCH v5 14/15] examples/l3fwd-graph: introduce multicore dispatch worker model Zhirun Yan
2023-03-31  4:03         ` [PATCH v5 15/15] doc: update multicore dispatch model in graph guides Zhirun Yan
2023-05-09  6:03         ` [PATCH v6 00/15] graph enhancement for multi-core dispatch Zhirun Yan
2023-05-09  6:03           ` [PATCH v6 01/15] graph: rename rte_graph_work as common Zhirun Yan
2023-05-22  8:25             ` Jerin Jacob
2023-05-23  8:13               ` Yan, Zhirun
2023-05-09  6:03           ` [PATCH v6 02/15] graph: split graph worker into common and default model Zhirun Yan
2023-05-09  6:03           ` [PATCH v6 03/15] graph: move node process into inline function Zhirun Yan
2023-05-09  6:03           ` [PATCH v6 04/15] graph: add get/set graph worker model APIs Zhirun Yan
2023-05-24  6:08             ` Jerin Jacob
2023-05-26  9:58               ` Yan, Zhirun
2023-05-09  6:03           ` [PATCH v6 05/15] graph: introduce graph node core affinity API Zhirun Yan
2023-05-24  6:36             ` Jerin Jacob
2023-05-26 10:00               ` Yan, Zhirun
2023-05-09  6:03           ` [PATCH v6 06/15] graph: introduce graph bind unbind API Zhirun Yan
2023-05-24  6:23             ` Jerin Jacob
2023-05-26 10:00               ` Yan, Zhirun
2023-05-09  6:03           ` [PATCH v6 07/15] graph: introduce graph clone API for other worker core Zhirun Yan
2023-05-24  7:14             ` Jerin Jacob
2023-05-26 10:02               ` Yan, Zhirun
2023-05-09  6:03           ` [PATCH v6 08/15] graph: add struct for stream moving between cores Zhirun Yan
2023-05-24  7:24             ` Jerin Jacob
2023-05-26 10:02               ` Yan, Zhirun
2023-05-09  6:03           ` [PATCH v6 09/15] graph: introduce stream moving cross cores Zhirun Yan
2023-05-24  8:00             ` Jerin Jacob
2023-05-26 10:03               ` Yan, Zhirun
2023-05-09  6:03           ` [PATCH v6 10/15] graph: enable create and destroy graph scheduling workqueue Zhirun Yan
2023-05-09  6:03           ` [PATCH v6 11/15] graph: introduce graph walk by cross-core dispatch Zhirun Yan
2023-05-09  6:03           ` [PATCH v6 12/15] graph: enable graph multicore dispatch scheduler model Zhirun Yan
2023-05-24  8:45             ` Jerin Jacob
2023-05-26 10:04               ` Yan, Zhirun
2023-05-09  6:03           ` [PATCH v6 13/15] graph: add stats for cross-core dispatching Zhirun Yan
2023-05-24  8:08             ` Jerin Jacob
2023-05-26 10:03               ` Yan, Zhirun
2023-05-09  6:03           ` [PATCH v6 14/15] examples/l3fwd-graph: introduce multicore dispatch worker model Zhirun Yan
2023-05-09  6:03           ` [PATCH v6 15/15] doc: update multicore dispatch model in graph guides Zhirun Yan
2023-05-24  8:12             ` Jerin Jacob
2023-05-26 10:04               ` Yan, Zhirun
2023-06-05 11:19           ` [PATCH v7 00/15] graph enhancement for multi-core dispatch Zhirun Yan
2023-06-05 11:19             ` [PATCH v7 01/17] graph: rename rte_graph_work as common Zhirun Yan
2023-06-05 11:19             ` [PATCH v7 02/17] graph: split graph worker into common and default model Zhirun Yan
2023-06-05 11:19             ` [PATCH v7 03/17] graph: move node process into inline function Zhirun Yan
2023-06-05 11:19             ` [PATCH v7 04/17] graph: add get/set graph worker model APIs Zhirun Yan
2023-06-05 12:38               ` Jerin Jacob
2023-06-06  4:30                 ` Yan, Zhirun
2023-06-06  5:48                   ` Jerin Jacob
2023-06-06  6:34                     ` Yan, Zhirun
2023-06-06  6:39                       ` Jerin Jacob
2023-06-05 11:19             ` [PATCH v7 05/17] graph: introduce graph node core affinity API Zhirun Yan
2023-06-05 11:19             ` [PATCH v7 06/17] graph: introduce graph bind unbind API Zhirun Yan
2023-06-05 12:41               ` Jerin Jacob
2023-06-06  4:30                 ` Yan, Zhirun
2023-06-05 11:19             ` [PATCH v7 07/17] graph: move node clone name func into private as common Zhirun Yan
2023-06-05 11:19             ` [PATCH v7 08/17] graph: introduce graph clone API for other worker core Zhirun Yan
2023-06-05 11:19             ` [PATCH v7 09/17] graph: add structure for stream moving between cores Zhirun Yan
2023-06-05 12:46               ` Jerin Jacob
2023-06-06  4:30                 ` Yan, Zhirun
2023-06-05 11:19             ` [PATCH v7 10/17] graph: introduce stream moving cross cores Zhirun Yan
2023-06-05 11:19             ` [PATCH v7 11/17] graph: enable create and destroy graph scheduling workqueue Zhirun Yan
2023-06-05 11:19             ` [PATCH v7 12/17] graph: introduce graph walk by cross-core dispatch Zhirun Yan
2023-06-05 11:19             ` [PATCH v7 13/17] graph: enable graph multicore dispatch scheduler model Zhirun Yan
2023-06-05 11:19             ` [PATCH v7 14/17] graph: add stats for cross-core dispatching Zhirun Yan
2023-06-05 11:19             ` [PATCH v7 15/17] examples/l3fwd-graph: introduce multicore dispatch worker model Zhirun Yan
2023-06-05 13:42               ` Jerin Jacob
2023-06-06  5:10                 ` Yan, Zhirun
2023-06-06  5:55                   ` Jerin Jacob
2023-06-06  8:51                     ` Yan, Zhirun
2023-06-05 11:19             ` [PATCH v7 16/17] test/graph: add functional tests for mcore dispatch model Zhirun Yan
2023-06-05 11:19             ` [PATCH v7 17/17] doc: update multicore dispatch model in graph guides Zhirun Yan
2023-06-06 14:47             ` [PATCH v8 00/17] graph enhancement for multi-core dispatch Zhirun Yan
2023-06-06 14:47               ` [PATCH v8 01/17] graph: rename rte_graph_work as common Zhirun Yan
2023-06-06 14:47               ` [PATCH v8 02/17] graph: split graph worker into common and default model Zhirun Yan
2023-06-06 14:47               ` [PATCH v8 03/17] graph: move node process into inline function Zhirun Yan
2023-06-06 14:47               ` [PATCH v8 04/17] graph: add get/set graph worker model APIs Zhirun Yan
2023-06-06 14:47               ` [PATCH v8 05/17] graph: introduce graph node core affinity API Zhirun Yan
2023-06-06 14:47               ` [PATCH v8 06/17] graph: introduce graph bind unbind API Zhirun Yan
2023-06-06 14:47               ` [PATCH v8 07/17] graph: move node clone name func into private as common Zhirun Yan
2023-06-06 14:47               ` [PATCH v8 08/17] graph: introduce graph clone API for other worker core Zhirun Yan
2023-06-06 14:47               ` [PATCH v8 09/17] graph: add structure for stream moving between cores Zhirun Yan
2023-06-06 14:47               ` [PATCH v8 10/17] graph: introduce stream moving cross cores Zhirun Yan
2023-06-06 14:47               ` [PATCH v8 11/17] graph: enable create and destroy graph scheduling workqueue Zhirun Yan
2023-06-06 14:47               ` [PATCH v8 12/17] graph: introduce graph walk by cross-core dispatch Zhirun Yan
2023-06-06 14:47               ` [PATCH v8 13/17] graph: enable graph multicore dispatch scheduler model Zhirun Yan
2023-06-06 14:47               ` [PATCH v8 14/17] graph: add stats for cross-core dispatching Zhirun Yan
2023-06-06 14:47               ` [PATCH v8 15/17] examples/l3fwd-graph: introduce multicore dispatch worker model Zhirun Yan
2023-06-06 14:47               ` [PATCH v8 16/17] test/graph: add functional tests for mcore dispatch model Zhirun Yan
2023-06-06 14:47               ` [PATCH v8 17/17] doc: update multicore dispatch model in graph guides Zhirun Yan
2023-06-07  3:51               ` [PATCH v9 00/17] graph enhancement for multi-core dispatch Zhirun Yan
2023-06-07  3:51                 ` [PATCH v9 01/17] graph: rename rte_graph_work as common Zhirun Yan
2023-06-07  7:28                   ` Jerin Jacob
2023-06-07  3:51                 ` [PATCH v9 02/17] graph: split graph worker into common and default model Zhirun Yan
2023-06-07  7:30                   ` Jerin Jacob
2023-06-07  3:51                 ` [PATCH v9 03/17] graph: move node process into inline function Zhirun Yan
2023-06-07  7:31                   ` Jerin Jacob
2023-06-07  3:51                 ` [PATCH v9 04/17] graph: add get/set graph worker model APIs Zhirun Yan
2023-06-07  7:42                   ` Jerin Jacob
2023-06-07 12:25                     ` Yan, Zhirun
2023-06-07 13:28                       ` Jerin Jacob
2023-06-08  3:08                         ` Yan, Zhirun
2023-06-07  3:51                 ` [PATCH v9 05/17] graph: introduce graph node core affinity API Zhirun Yan
2023-06-07  7:56                   ` Jerin Jacob
2023-06-07  3:51                 ` [PATCH v9 06/17] graph: introduce graph bind unbind API Zhirun Yan
2023-06-07  7:59                   ` Jerin Jacob
2023-06-07  3:51                 ` [PATCH v9 07/17] graph: move node clone name func into private as common Zhirun Yan
2023-06-07  8:01                   ` Jerin Jacob
2023-06-07  3:51                 ` [PATCH v9 08/17] graph: introduce graph clone API for other worker core Zhirun Yan
2023-06-07  8:04                   ` Jerin Jacob
2023-06-07  3:51                 ` [PATCH v9 09/17] graph: add structure for stream moving between cores Zhirun Yan
2023-06-07  3:51                 ` [PATCH v9 10/17] graph: introduce stream moving cross cores Zhirun Yan
2023-06-07  3:51                 ` [PATCH v9 11/17] graph: enable create and destroy graph scheduling workqueue Zhirun Yan
2023-06-07  3:51                 ` [PATCH v9 12/17] graph: introduce graph walk by cross-core dispatch Zhirun Yan
2023-06-07  8:09                   ` Jerin Jacob
2023-06-07  3:51                 ` [PATCH v9 13/17] graph: enable graph multicore dispatch scheduler model Zhirun Yan
2023-06-07  8:15                   ` Jerin Jacob
2023-06-07 12:25                     ` Yan, Zhirun
2023-06-07 13:26                       ` Jerin Jacob
2023-06-08  3:08                         ` Yan, Zhirun
2023-06-08  5:33                           ` Jerin Jacob
2023-06-08  7:06                             ` Yan, Zhirun
2023-06-07  3:51                 ` [PATCH v9 14/17] graph: add stats for cross-core dispatching Zhirun Yan
2023-06-07  8:20                   ` Jerin Jacob
2023-06-07  3:51                 ` [PATCH v9 15/17] examples/l3fwd-graph: introduce multicore dispatch worker model Zhirun Yan
2023-06-07  8:27                   ` Jerin Jacob
2023-06-07 12:26                     ` Yan, Zhirun
2023-06-07 13:58                       ` Jerin Jacob
2023-06-08  2:58                         ` Yan, Zhirun
2023-06-07  3:51                 ` [PATCH v9 16/17] test/graph: add functional tests for mcore dispatch model Zhirun Yan
2023-06-07  3:51                 ` [PATCH v9 17/17] doc: update multicore dispatch model in graph guides Zhirun Yan
2023-06-07 12:45                   ` Jerin Jacob
2023-06-08  3:21                     ` Yan, Zhirun
2023-06-08  9:57                 ` [PATCH v10 00/16] graph enhancement for multi-core dispatch Zhirun Yan
2023-06-08  9:57                   ` [PATCH v10 01/16] graph: rename rte_graph_work as common Zhirun Yan
2023-06-08  9:57                   ` [PATCH v10 02/16] graph: split graph worker into common and default model Zhirun Yan
2023-06-08  9:57                   ` [PATCH v10 03/16] graph: move node process into inline function Zhirun Yan
2023-06-08  9:57                   ` [PATCH v10 04/16] graph: add get/set graph worker model APIs Zhirun Yan
2023-06-08 10:38                     ` Jerin Jacob
2023-06-08  9:57                   ` [PATCH v10 05/16] graph: introduce graph node core affinity API Zhirun Yan
2023-06-08  9:57                   ` [PATCH v10 06/16] graph: introduce graph bind unbind API Zhirun Yan
2023-06-08 10:40                     ` Jerin Jacob
2023-06-08 13:47                       ` Yan, Zhirun
2023-06-08  9:57                   ` [PATCH v10 07/16] graph: move node clone name func into private as common Zhirun Yan
2023-06-08  9:57                   ` [PATCH v10 08/16] graph: introduce graph clone API for other worker core Zhirun Yan
2023-06-08  9:57                   ` [PATCH v10 09/16] graph: add structure for stream moving between cores Zhirun Yan
2023-06-08  9:57                   ` [PATCH v10 10/16] graph: introduce stream moving cross cores Zhirun Yan
2023-06-08 13:39                     ` [EXT] " Pavan Nikhilesh Bhagavatula
2023-06-08  9:57                   ` [PATCH v10 11/16] graph: enable create and destroy graph scheduling workqueue Zhirun Yan
2023-06-08 13:43                     ` [EXT] " Pavan Nikhilesh Bhagavatula
2023-06-08  9:57                   ` [PATCH v10 12/16] graph: introduce graph walk by cross-core dispatch Zhirun Yan
2023-06-08 13:43                     ` [EXT] " Pavan Nikhilesh Bhagavatula
2023-06-08  9:57                   ` [PATCH v10 13/16] graph: enable graph multicore dispatch scheduler model Zhirun Yan
2023-06-08 10:42                     ` Jerin Jacob
2023-06-08 14:29                     ` [EXT] " Pavan Nikhilesh Bhagavatula
2023-06-08  9:57                   ` [PATCH v10 14/16] graph: add stats for mcore dispatch model Zhirun Yan
2023-06-08 13:11                     ` [EXT] " Pavan Nikhilesh Bhagavatula
2023-06-08  9:57                   ` [PATCH v10 15/16] test/graph: add functional tests " Zhirun Yan
2023-06-08 12:27                     ` [EXT] " Pavan Nikhilesh Bhagavatula
2023-06-08  9:57                   ` [PATCH v10 16/16] examples/l3fwd-graph: introduce mcore dispatch worker model Zhirun Yan
2023-06-08 10:45                     ` Jerin Jacob
2023-06-08 12:08                     ` [EXT] " Pavan Nikhilesh Bhagavatula
2023-06-08 13:50                       ` Yan, Zhirun
2023-06-08 15:18                   ` [PATCH v11 00/16] graph enhancement for multi-core dispatch Zhirun Yan
2023-06-08 15:18                     ` [PATCH v11 01/16] graph: rename rte_graph_work as common Zhirun Yan
2023-06-08 15:18                     ` [PATCH v11 02/16] graph: split graph worker into common and default model Zhirun Yan
2023-06-08 15:18                     ` [PATCH v11 03/16] graph: move node process into inline function Zhirun Yan
2023-06-08 15:18                     ` [PATCH v11 04/16] graph: add get/set graph worker model APIs Zhirun Yan
2023-06-08 15:18                     ` [PATCH v11 05/16] graph: introduce graph node core affinity API Zhirun Yan
2023-06-08 15:18                     ` [PATCH v11 06/16] graph: introduce graph bind unbind API Zhirun Yan
2023-06-08 15:18                     ` [PATCH v11 07/16] graph: move node clone name func into private as common Zhirun Yan
2023-06-08 15:18                     ` [PATCH v11 08/16] graph: introduce graph clone API for other worker core Zhirun Yan
2023-06-08 15:18                     ` [PATCH v11 09/16] graph: add structure for stream moving between cores Zhirun Yan
2023-06-08 15:18                     ` [PATCH v11 10/16] graph: introduce stream moving cross cores Zhirun Yan
2023-06-08 15:18                     ` [PATCH v11 11/16] graph: enable create and destroy graph scheduling workqueue Zhirun Yan
2023-06-08 15:18                     ` [PATCH v11 12/16] graph: introduce graph walk by cross-core dispatch Zhirun Yan
2023-06-08 15:18                     ` [PATCH v11 13/16] graph: enable graph multicore dispatch scheduler model Zhirun Yan
2023-06-08 15:18                     ` [PATCH v11 14/16] graph: add stats for mcore dispatch model Zhirun Yan
2023-06-08 15:18                     ` [PATCH v11 15/16] test/graph: add functional tests " Zhirun Yan
2023-06-08 15:18                     ` [PATCH v11 16/16] examples/l3fwd-graph: introduce mcore dispatch worker model Zhirun Yan
2023-06-08 15:30                     ` [PATCH v11 00/16] graph enhancement for multi-core dispatch Jerin Jacob
2023-06-09 13:39                       ` David Marchand
2023-06-09 14:36                         ` David Marchand
2023-06-09 15:47                           ` Yan, Zhirun
2023-06-12 14:55                             ` David Marchand
2023-06-13  8:06                               ` Yan, Zhirun
2023-06-09 19:12                     ` [PATCH v12 " Zhirun Yan
2023-06-09 19:12                       ` [PATCH v12 01/16] graph: rename rte_graph_work as common Zhirun Yan
2023-06-09 19:12                       ` [PATCH v12 02/16] graph: split graph worker into common and default model Zhirun Yan
2023-06-09 19:12                       ` [PATCH v12 03/16] graph: move node process into inline function Zhirun Yan
2023-06-09 19:12                       ` [PATCH v12 04/16] graph: add get/set graph worker model APIs Zhirun Yan
2023-06-09 19:12                       ` [PATCH v12 05/16] graph: introduce graph node core affinity API Zhirun Yan
2023-06-09 19:12                       ` [PATCH v12 06/16] graph: introduce graph bind unbind API Zhirun Yan
2023-06-09 19:12                       ` [PATCH v12 07/16] graph: move node clone name func into private as common Zhirun Yan
2023-06-09 19:12                       ` [PATCH v12 08/16] graph: introduce graph clone API for other worker core Zhirun Yan
2023-06-09 19:12                       ` [PATCH v12 09/16] graph: add structure for stream moving between cores Zhirun Yan
2023-06-09 19:12                       ` [PATCH v12 10/16] graph: introduce stream moving cross cores Zhirun Yan
2023-06-09 19:12                       ` [PATCH v12 11/16] graph: enable create and destroy graph scheduling workqueue Zhirun Yan
2023-06-09 19:12                       ` [PATCH v12 12/16] graph: introduce graph walk by cross-core dispatch Zhirun Yan
2023-06-09 19:12                       ` [PATCH v12 13/16] graph: enable graph multicore dispatch scheduler model Zhirun Yan
2023-06-09 19:12                       ` [PATCH v12 14/16] graph: add stats for mcore dispatch model Zhirun Yan
2023-06-09 19:12                       ` [PATCH v12 15/16] test/graph: add functional tests " Zhirun Yan
2023-06-09 19:12                       ` [PATCH v12 16/16] examples/l3fwd-graph: introduce mcore dispatch worker model Zhirun Yan
2023-06-13 10:13                       ` [PATCH v13 00/16] graph enhancement for multi-core dispatch Zhirun Yan
2023-06-13 10:13                         ` [PATCH v13 01/16] graph: rename rte_graph_work as common Zhirun Yan
2023-06-13 10:13                         ` [PATCH v13 02/16] graph: split graph worker into common and default model Zhirun Yan
2023-06-13 10:13                         ` [PATCH v13 03/16] graph: move node process into inline function Zhirun Yan
2023-06-13 10:13                         ` [PATCH v13 04/16] graph: add get/set graph worker model APIs Zhirun Yan
2023-06-13 10:13                         ` [PATCH v13 05/16] graph: introduce graph node core affinity API Zhirun Yan
2023-06-13 10:13                         ` [PATCH v13 06/16] graph: introduce graph bind unbind API Zhirun Yan
2023-06-13 10:13                         ` [PATCH v13 07/16] graph: move node clone name func into private as common Zhirun Yan
2023-06-13 10:13                         ` [PATCH v13 08/16] graph: introduce graph clone API for other worker core Zhirun Yan
2023-06-13 10:13                         ` [PATCH v13 09/16] graph: add structure for stream moving between cores Zhirun Yan
2023-06-13 10:13                         ` [PATCH v13 10/16] graph: introduce stream moving cross cores Zhirun Yan
2023-06-13 10:13                         ` [PATCH v13 11/16] graph: enable create and destroy graph scheduling workqueue Zhirun Yan
2023-06-13 10:14                         ` [PATCH v13 12/16] graph: introduce graph walk by cross-core dispatch Zhirun Yan
2023-06-13 10:14                         ` [PATCH v13 13/16] graph: enable graph multicore dispatch scheduler model Zhirun Yan
2023-06-13 10:14                         ` [PATCH v13 14/16] graph: add stats for mcore dispatch model Zhirun Yan
2023-06-13 10:14                         ` [PATCH v13 15/16] test/graph: add functional tests " Zhirun Yan
2023-06-13 10:14                         ` [PATCH v13 16/16] examples/l3fwd-graph: introduce mcore dispatch worker model Zhirun Yan
2023-06-13 11:12                         ` [PATCH v13 00/16] graph enhancement for multi-core dispatch Jerin Jacob
2023-06-13 11:26                           ` Yan, Zhirun
2023-06-13 14:04                         ` [PATCH v14 " Zhirun Yan
2023-06-13 14:04                           ` [PATCH v14 01/16] graph: rename rte_graph_work as common Zhirun Yan
2023-06-13 14:04                           ` [PATCH v14 02/16] graph: split graph worker into common and default model Zhirun Yan
2023-06-13 14:04                           ` [PATCH v14 03/16] graph: move node process into inline function Zhirun Yan
2023-06-13 14:04                           ` [PATCH v14 04/16] graph: add get/set graph worker model APIs Zhirun Yan
2023-06-13 14:04                           ` [PATCH v14 05/16] graph: introduce graph node core affinity API Zhirun Yan
2023-06-13 14:04                           ` [PATCH v14 06/16] graph: introduce graph bind unbind API Zhirun Yan
2023-06-13 14:04                           ` [PATCH v14 07/16] graph: move node clone name func into private as common Zhirun Yan
2023-06-13 14:04                           ` [PATCH v14 08/16] graph: introduce graph clone API for other worker core Zhirun Yan
2023-06-13 14:04                           ` [PATCH v14 09/16] graph: add structure for stream moving between cores Zhirun Yan
2023-06-13 14:04                           ` [PATCH v14 10/16] graph: introduce stream moving cross cores Zhirun Yan
2023-06-13 14:04                           ` [PATCH v14 11/16] graph: enable create and destroy graph scheduling workqueue Zhirun Yan
2023-06-13 14:04                           ` [PATCH v14 12/16] graph: introduce graph walk by cross-core dispatch Zhirun Yan
2023-06-13 14:04                           ` [PATCH v14 13/16] graph: enable graph multicore dispatch scheduler model Zhirun Yan
2023-06-13 14:04                           ` [PATCH v14 14/16] graph: add stats for mcore dispatch model Zhirun Yan
2023-06-13 14:04                           ` [PATCH v14 15/16] test/graph: add functional tests " Zhirun Yan
2023-06-13 14:04                           ` [PATCH v14 16/16] examples/l3fwd-graph: introduce mcore dispatch worker model Zhirun Yan
2023-06-13 14:40                           ` [PATCH v14 00/16] graph enhancement for multi-core dispatch David Marchand
2023-06-13 16:08                             ` Jerin Jacob
2023-06-14  1:52                               ` Yan, Zhirun
2023-06-14 15:58                           ` [PATCH v15 " Zhirun Yan
2023-06-14 15:58                             ` [PATCH v15 01/16] graph: rename rte graph worker header as common Zhirun Yan
2023-06-14 15:58                             ` [PATCH v15 02/16] graph: split graph worker into common and default model Zhirun Yan
2023-06-14 15:58                             ` [PATCH v15 03/16] graph: move node process into inline function Zhirun Yan
2023-06-14 15:58                             ` [PATCH v15 04/16] graph: add get/set graph worker model APIs Zhirun Yan
2023-06-14 15:58                             ` [PATCH v15 05/16] graph: introduce graph node core affinity API Zhirun Yan
2023-06-14 15:58                             ` [PATCH v15 06/16] graph: introduce graph bind unbind API Zhirun Yan
2023-06-14 15:58                             ` [PATCH v15 07/16] graph: move node clone name func into private as common Zhirun Yan
2023-06-14 15:58                             ` [PATCH v15 08/16] graph: introduce graph clone API for other worker core Zhirun Yan
2023-06-14 15:58                             ` [PATCH v15 09/16] graph: add structure for stream moving between cores Zhirun Yan
2023-06-14 15:58                             ` [PATCH v15 10/16] graph: introduce stream moving cross cores Zhirun Yan
2023-06-14 15:58                             ` [PATCH v15 11/16] graph: enable create and destroy graph scheduling workqueue Zhirun Yan
2023-06-14 15:58                             ` [PATCH v15 12/16] graph: introduce graph walk by cross-core dispatch Zhirun Yan
2023-06-14 15:58                             ` [PATCH v15 13/16] graph: enable graph multicore dispatch scheduler model Zhirun Yan
2023-06-14 15:59                             ` [PATCH v15 14/16] graph: add stats for mcore dispatch model Zhirun Yan
2023-06-14 15:59                             ` [PATCH v15 15/16] test/graph: add functional tests " Zhirun Yan
2023-06-14 15:59                             ` [PATCH v15 16/16] examples/l3fwd-graph: introduce mcore dispatch worker model Zhirun Yan
2023-06-19 20:45                             ` [PATCH v15 00/16] graph enhancement for multi-core dispatch David Marchand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221117050926.136974-2-zhirun.yan@intel.com \
    --to=zhirun.yan@intel.com \
    --cc=cunming.liang@intel.com \
    --cc=dev@dpdk.org \
    --cc=haiyue.wang@intel.com \
    --cc=jerinj@marvell.com \
    --cc=kirankumark@marvell.com \
    --cc=ndabilpuram@marvell.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).