CNDP  22.08.0
cne_lport.h File Reference
#include <stdint.h>
#include <sys/types.h>
#include <stdbool.h>
#include <pktmbuf.h>
#include <cne_common.h>

Go to the source code of this file.

Macros

#define LPORT_UNPRIVILEGED   (1 << 0)
 
#define LPORT_FORCE_WAKEUP   (1 << 1)
 
#define LPORT_SKB_MODE   (1 << 2)
 
#define LPORT_BUSY_POLLING   (1 << 3)
 
#define LPORT_SHARED_UMEM   (1 << 4)
 
#define LPORT_USER_MANAGED_BUFFERS   (1 << 5)
 
#define LPORT_UMEM_UNALIGNED_BUFFERS   (1 << 6)
 

Typedefs

typedef struct lport_cfg lport_cfg_t
 

Detailed Description

lport configuration structure and information on lports.

Definition in file cne_lport.h.

Macro Definition Documentation

◆ LPORT_UNPRIVILEGED

#define LPORT_UNPRIVILEGED   (1 << 0)

Inhibit Loading the BPF program & config of busy poll

Examples
examples/cndpfwd/parse-args.c.

Definition at line 92 of file cne_lport.h.

◆ LPORT_FORCE_WAKEUP

#define LPORT_FORCE_WAKEUP   (1 << 1)

Force a wakeup, for CVL NICs

Definition at line 93 of file cne_lport.h.

◆ LPORT_SKB_MODE

#define LPORT_SKB_MODE   (1 << 2)

Force the SKB_MODE or copy mode

Examples
examples/cndpfwd/parse-args.c.

Definition at line 94 of file cne_lport.h.

◆ LPORT_BUSY_POLLING

#define LPORT_BUSY_POLLING   (1 << 3)

Enable busy polling

Examples
examples/cndpfwd/parse-args.c.

Definition at line 95 of file cne_lport.h.

◆ LPORT_SHARED_UMEM

#define LPORT_SHARED_UMEM   (1 << 4)

◆ LPORT_USER_MANAGED_BUFFERS

#define LPORT_USER_MANAGED_BUFFERS   (1 << 5)

Enable Buffer Manager outside of CNDP

Examples
examples/vpp-plugin/cndp/device.c.

Definition at line 97 of file cne_lport.h.

◆ LPORT_UMEM_UNALIGNED_BUFFERS

#define LPORT_UMEM_UNALIGNED_BUFFERS   (1 << 6)

Enable unaligned frame UMEM support

Examples
examples/vpp-plugin/cndp/device.c.

Definition at line 98 of file cne_lport.h.

Typedef Documentation

◆ lport_cfg_t

typedef struct lport_cfg lport_cfg_t

lport_cfg.flags configuration bits