---
name: "rte_node_eth_api.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_node_eth_api.h"
---

# rte\_node\_eth\_api.h(3)

## NAME

rte\_node\_eth\_api.h

## SYNOPSIS

`#include <rte_compat.h>`\
 `#include <rte_common.h>`\
 `#include <rte_graph.h>`\
 `#include <rte_mempool.h>`\

### Data Structures

struct **rte\_node\_ethdev\_config**\

### Functions

int **rte\_node\_eth\_config** (struct **rte\_node\_ethdev\_config** \*cfg, uint16\_t cnt, uint16\_t nb\_graphs)\
 \_\_rte\_experimental int **rte\_node\_ethdev\_rx\_next\_update** (**rte\_node\_t** id, const char \*edge\_name)\

## Detailed Description

**Warning**

**EXPERIMENTAL:** All functions in this file may be changed or removed without prior notice.

This API allows to setup ethdev\_rx and ethdev\_tx nodes and its queue associations.

Definition in file **rte\_node\_eth\_api.h**.

## Function Documentation

### int rte\_node\_eth\_config (struct rte\_node\_ethdev\_config \* cfg, uint16\_t cnt, uint16\_t nb\_graphs)

Initializes ethdev nodes.

**Parameters**

*cfg* Array of ethdev config that identifies which port's ethdev\_rx and ethdev\_tx nodes need to be created and queue association. \
 *cnt* Size of cfg array. \
 *nb\_graphs* Number of graphs that will be used.

**Returns**

0 on successful initialization, negative otherwise.

### \_\_rte\_experimental int rte\_node\_ethdev\_rx\_next\_update (rte\_node\_t id, const char \* edge\_name)

Update ethdev rx next node.

**Parameters**

*id* Node id whose edge is to be updated. \
 *edge\_name* Name of the next node.

**Returns**

- •

  EINVAL: Either of input parameters are invalid

- •

  ENOMEM: If memory allocation failed

- •

  0 on successful initialization.

## Author

Generated automatically by Doxygen for DPDK from the source code.
