| rte_graph_worker_common.h(3) | Library Functions Manual | rte_graph_worker_common.h(3) |
rte_graph_worker_common.h
#include <assert.h>
#include <stdalign.h>
#include <stddef.h>
#include <rte_common.h>
#include <rte_cycles.h>
#include <rte_prefetch.h>
#include <rte_memcpy.h>
#include <rte_memory.h>
#include 'rte_graph.h'
struct rte_node::__rte_cache_aligned
#define RTE_GRAPH_MODEL_RTC 0
#define RTE_GRAPH_MODEL_MCORE_DISPATCH 1
#define RTE_GRAPH_MODEL_DEFAULT RTE_GRAPH_MODEL_RTC
static void rte_node_enqueue (struct rte_graph *graph,
struct rte_node *node, rte_edge_t next, void **objs, uint16_t
nb_objs)
static void rte_node_enqueue_x1 (struct rte_graph *graph, struct
rte_node *node, rte_edge_t next, void *obj)
static void rte_node_enqueue_x2 (struct rte_graph *graph, struct
rte_node *node, rte_edge_t next, void *obj0, void *obj1)
static 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)
static void rte_node_enqueue_next (struct rte_graph *graph, struct
rte_node *node, rte_edge_t *nexts, void **objs, uint16_t nb_objs)
static void ** rte_node_next_stream_get (struct rte_graph *graph,
struct rte_node *node, rte_edge_t next, uint16_t nb_objs)
static void rte_node_next_stream_put (struct rte_graph *graph, struct
rte_node *node, rte_edge_t next, uint16_t idx)
static void rte_node_next_stream_move (struct rte_graph *graph, struct
rte_node *src, rte_edge_t next)
bool rte_graph_model_is_valid (uint8_t model)
int rte_graph_worker_model_set (uint8_t model)
uint8_t rte_graph_worker_model_get (struct rte_graph *graph)
static __rte_always_inline uint8_t
rte_graph_worker_model_no_check_get (struct rte_graph *graph)
static __rte_experimental void rte_node_xstat_increment (struct
rte_node *node, uint16_t xstat_id, uint64_t value)
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.
Definition in file rte_graph_worker_common.h.
Graph worker models Run-To-Completion model. It is the default model.
Definition at line 33 of file rte_graph_worker_common.h.
Dispatch model to support cross-core dispatching within core affinity.
Definition at line 35 of file rte_graph_worker_common.h.
Default graph model.
Definition at line 36 of file rte_graph_worker_common.h.
Enqueue the objs to next node for further processing and set the next node to pending state in the circular buffer.
Parameters
Definition at line 307 of file rte_graph_worker_common.h.
Enqueue only one obj to next node for further processing and set the next node to pending state in the circular buffer.
Parameters
Definition at line 333 of file rte_graph_worker_common.h.
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.
Parameters
Definition at line 362 of file rte_graph_worker_common.h.
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.
Parameters
Definition at line 396 of file rte_graph_worker_common.h.
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].
Parameters
Definition at line 429 of file rte_graph_worker_common.h.
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.
Parameters
Returns
See also
Definition at line 458 of file rte_graph_worker_common.h.
Put the next stream to pending state in the circular buffer for further processing. Should be invoked after rte_node_next_stream_get().
Parameters
See also
Definition at line 488 of file rte_graph_worker_common.h.
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.
Parameters
Definition at line 516 of file rte_graph_worker_common.h.
Test the validity of model.
Parameters
Returns
Note
Parameters
Returns
Get the graph worker model
Note
Parameters
Returns
Get the graph worker model without check
Note
Parameters
Returns
Definition at line 587 of file rte_graph_worker_common.h.
Increment Node xstat count.
Increment the count of an xstat for a given node.
Parameters
Definition at line 606 of file rte_graph_worker_common.h.
Generated automatically by Doxygen for DPDK from the source code.
| Version 24.11.3 | DPDK |