CNDP  22.08.0
eth_node_api.h File Reference
#include <cne_common.h>
#include <mempool.h>

Go to the source code of this file.

Data Structures

struct  pkt_eth_node_config
 

Functions

CNDP_API int cnet_eth_node_config (struct pkt_eth_node_config *cfg, uint16_t cnt)
 

Detailed Description

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

Definition in file eth_node_api.h.

Function Documentation

◆ cnet_eth_node_config()

CNDP_API int cnet_eth_node_config ( struct pkt_eth_node_config cfg,
uint16_t  cnt 
)

Initializes ethernet nodes.

Parameters
cfgArray of ethernet config that identifies which port's eth_rx and eth_tx nodes need to be created and queue association.
cntSize of cfg array.
Returns
0 on successful initialization, negative otherwise.
Examples
examples/cnet-graph/cnet-graph.c, and examples/cnet-quic/cnet-quic.c.