CNDP
22.08.0
|
#include <cne_version.h>
#include <cne_log.h>
#include <cne_per_thread.h>
#include <cne_cycles.h>
#include <cnet_const.h>
#include <cne_atomic.h>
#include <stdint.h>
#include <cne_common.h>
#include <uid.h>
Go to the source code of this file.
Enumerations | |
enum | { CNET_PUNT_ENABLED = 0x0001 , CNET_TCP_ENABLED = 0x0002 } |
Functions | |
struct cnet * | cnet_get (void) |
Get the current cnet structure pointer. More... | |
CNDP_API int | cnet_lock (void) |
Lock the cnet structure. More... | |
CNDP_API void | cnet_unlock (void) |
Lock the cnet structure data. More... | |
CNDP_API int | cnet_preload (char **libs, int cnt, int flag) |
preload shared libraries for CNDP and CNET. More... | |
CNDP_API struct cnet * | cnet_config_create (uint32_t num_chnls, uint32_t num_routes) |
Configure and create the base cnet structure using a couple params. More... | |
CNDP_API struct cnet * | cnet_create (void) |
Create cnet structure and use default value, will call cnet_config_create(). More... | |
CNDP_API void | cnet_stop (void) |
Stop and free resources of the cnet structure. More... | |
CNDP_API void | cnet_dump (void) |
Dump out the CNET structure information. More... | |
CNDP_API int | cnet_add_cli_cmds (void) |
Called to initialize the CLI commands for the CNET structure. More... | |
CNET configuration routines.
Definition in file cnet.h.
anonymous enum |
struct cnet* cnet_get | ( | void | ) |
Get the current cnet structure pointer.
CNDP_API int cnet_lock | ( | void | ) |
Lock the cnet structure.
CNDP_API void cnet_unlock | ( | void | ) |
Lock the cnet structure data.
CNDP_API int cnet_preload | ( | char ** | libs, |
int | cnt, | ||
int | flag | ||
) |
preload shared libraries for CNDP and CNET.
libs | An array of shared library names or directories to load into memory. |
cnt | The number of entries in the libs array. |
flag | The flag values to be used when loading the libraries. |
CNDP_API struct cnet* cnet_config_create | ( | uint32_t | num_chnls, |
uint32_t | num_routes | ||
) |
Configure and create the base cnet structure using a couple params.
num_chnls | The number of channels allowed in the system. If zero use the default value. |
num_routes | The number of routes to allowed in the system. If zero use the default value. |
CNDP_API struct cnet* cnet_create | ( | void | ) |
Create cnet structure and use default value, will call cnet_config_create().
CNDP_API void cnet_stop | ( | void | ) |
Stop and free resources of the cnet structure.
CNDP_API void cnet_dump | ( | void | ) |
Dump out the CNET structure information.
CNDP_API int cnet_add_cli_cmds | ( | void | ) |
Called to initialize the CLI commands for the CNET structure.