DPDK  24.03.0
Data Structures | Functions
rte_node_eth_api.h File Reference
#include <rte_compat.h>
#include <rte_common.h>
#include <rte_graph.h>
#include <rte_mempool.h>

Go to the source code of this file.

Data Structures

struct  rte_node_ethdev_config


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

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

◆ rte_node_eth_config()

int rte_node_eth_config ( struct rte_node_ethdev_config cfg,
uint16_t  cnt,
uint16_t  nb_graphs 

Initializes ethdev nodes.

cfgArray of ethdev config that identifies which port's ethdev_rx and ethdev_tx nodes need to be created and queue association.
cntSize of cfg array.
nb_graphsNumber of graphs that will be used.
0 on successful initialization, negative otherwise.

◆ rte_node_ethdev_rx_next_update()

__rte_experimental int rte_node_ethdev_rx_next_update ( rte_node_t  id,
const char *  edge_name 

Update ethdev rx next node.

idNode id whose edge is to be updated.
edge_nameName of the next node.
  • EINVAL: Either of input parameters are invalid
  • ENOMEM: If memory allocation failed
  • 0 on successful initialization.