34 CNE_ATOMIC(uint_fast16_t) stk_order;
41 void **chnl_descriptors;
44 struct drv_entry **drvs;
45 struct netif **netifs;
46 struct cne_mempool *rt4_obj;
47 struct cne_mempool *arp_obj;
48 struct fib_info *rt4_finfo;
49 struct fib_info *arp_finfo;
50 struct fib_info *pcb_finfo;
51 struct fib_info *tcb_finfo;
52 } __cne_cache_aligned;
66 #define this_cnet cnet_get()
CNDP_API int cnet_preload(char **libs, int cnt, int flag)
preload shared libraries for CNDP and CNET.
struct cnet * cnet_get(void)
Get the current cnet structure pointer.
CNDP_API struct cnet * cnet_create(void)
Create cnet structure and use default value, will call cnet_config_create().
CNDP_API int cnet_add_cli_cmds(void)
Called to initialize the CLI commands for the CNET structure.
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.
CNDP_API int cnet_lock(void)
Lock the cnet structure.
CNDP_API void cnet_unlock(void)
Lock the cnet structure data.
CNDP_API void cnet_dump(void)
Dump out the CNET structure information.
CNDP_API void cnet_stop(void)
Stop and free resources of the cnet structure.