CNDP 22.08.0
Loading...
Searching...
No Matches
node_eth_api.h File Reference
#include <cne_common.h>
#include <mempool.h>

Go to the source code of this file.

Data Structures

struct  cne_node_pktdev_config

Functions

int cne_node_eth_config (struct cne_node_pktdev_config *cfg, uint16_t cnt)

Detailed Description

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

This API allows to setup pktdev_rx and pktdev_tx nodes and its queue associations.

Definition in file node_eth_api.h.

Function Documentation

◆ cne_node_eth_config()

int cne_node_eth_config ( struct cne_node_pktdev_config * cfg,
uint16_t cnt )

Initializes device nodes.

Parameters
cfgArray of device configs that identifies which port's pktdev_rx and pktdev_tx nodes need to be created and queue association.
cntSize of cfg array.
Returns
0 on successful initialization, negative otherwise.
Examples
examples/l3fwd-graph/fwd.c.