CNDP 22.08.0
Loading...
Searching...
No Matches
cnet_drv.h File Reference
#include <pktdev.h>
#include <net/ethernet.h>
#include <cne_atomic.h>
#include <stdint.h>
#include <net/if.h>
#include "cne_common.h"
#include "cnet_const.h"

Go to the source code of this file.

Functions

int cnet_drv_create (struct cnet *cnet)
 Create the driver structure and initialize it.
int cnet_drv_destroy (struct cnet *cnet)
 Destroy the driver structure and initialize it.

Detailed Description

CNET Driver routines.

Definition in file cnet_drv.h.

Function Documentation

◆ cnet_drv_create()

int cnet_drv_create ( struct cnet * cnet)

Create the driver structure and initialize it.

Parameters
cnetThe cnet structure pointer to attach the driver structure
Returns
-1 on error or 0 on success

◆ cnet_drv_destroy()

int cnet_drv_destroy ( struct cnet * cnet)

Destroy the driver structure and initialize it.

Parameters
cnetThe cnet structure pointer to detach the driver structure
Returns
-1 on error or 0 on success