DPDK 26.11.0-rc1
Functions
rte_graph_model_mcore_dispatch.h File Reference
#include <rte_errno.h>
#include <rte_mempool.h>
#include <rte_memzone.h>
#include <rte_ring.h>
#include "rte_graph_worker_common.h"

Go to the source code of this file.

Functions

int rte_graph_model_mcore_dispatch_node_lcore_affinity_set (const char *name, unsigned int lcore_id)
 
static void rte_graph_walk_mcore_dispatch (struct rte_graph *graph)
 

Detailed Description

These APIs allow setting core affinity with the node and only used for mcore dispatch model.

Definition in file rte_graph_model_mcore_dispatch.h.

Function Documentation

◆ rte_graph_model_mcore_dispatch_node_lcore_affinity_set()

int rte_graph_model_mcore_dispatch_node_lcore_affinity_set ( const char *  name,
unsigned int  lcore_id 
)

Set lcore affinity with the node used for mcore dispatch model.

Parameters
nameValid node name. In the case of the cloned node, the name will be "parent node name" + "-" + name.
lcore_idThe lcore ID value.
Returns
0 on success, error otherwise.
Examples
examples/l3fwd-graph/main.c.

◆ rte_graph_walk_mcore_dispatch()

static void rte_graph_walk_mcore_dispatch ( struct rte_graph *  graph)
inlinestatic

Perform graph walk on the pending bitmap and invoke the process function of the nodes and collect the stats.

Nodes are visited in topological order (upstream before downstream). Source nodes are seeded into the pending bitmap at the start of each walk. Nodes with different lcore affinity are dispatched to their target lcore.

Parameters
graphGraph pointer returned from rte_graph_lookup function.
See also
rte_graph_lookup()

Definition at line 93 of file rte_graph_model_mcore_dispatch.h.