---
name: "rte_graph_model_mcore_dispatch.h"
section: "3"
platform: "linux"
package: "dpdk-doc"
version: "24.11.4-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rte_graph_model_mcore_dispatch.h"
---

# rte\_graph\_model\_mcore\_dispatch.h(3)

## NAME

rte\_graph\_model\_mcore\_dispatch.h

## SYNOPSIS

`#include <rte_errno.h>`\
 `#include <rte_mempool.h>`\
 `#include <rte_memzone.h>`\
 `#include <rte_ring.h>`\
 `#include 'rte_graph_worker_common.h'`\

### 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 to set core affinity with the node and only used for mcore dispatch model.

Definition in file **rte\_graph\_model\_mcore\_dispatch.h**.

## Function Documentation

### 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**

*name* Valid node name. In the case of the cloned node, the name will be 'parent node name' + '-' + name. \
 *lcore\_id* The lcore ID value.

**Returns**

0 on success, error otherwise.

### static void rte\_graph\_walk\_mcore\_dispatch (struct rte\_graph \* graph)` [inline]`, ` [static]`

Perform graph walk on the circular buffer and invoke the process function of the nodes and collect the stats.

**Parameters**

*graph* Graph pointer returned from rte\_graph\_lookup function.

**See also**

**rte\_graph\_lookup()**

Definition at line **89** of file **rte\_graph\_model\_mcore\_dispatch.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
