CNDP  22.08.0
pktdev_info Struct Reference

#include <pktdev.h>

Data Fields

const char * driver_name
 
unsigned int if_index
 
bool admin_state
 
uint16_t min_mtu
 
uint16_t max_mtu
 
uint32_t min_rx_bufsize
 
uint32_t max_rx_pktlen
 
uint32_t min_tx_bufsize
 
uint8_t hash_key_size
 
uint32_t speed_capa
 
struct pktdev_portconf default_rxportconf
 
struct pktdev_portconf default_txportconf
 
uint64_t dev_capa
 

Detailed Description

Ethernet device information A structure used to retrieve the contextual information of an Ethernet device, such as the controlling driver of the device, etc...

Examples
examples/cli/main.c.

Definition at line 79 of file pktdev.h.

Field Documentation

◆ driver_name

const char* driver_name

Device Driver name.

Definition at line 80 of file pktdev.h.

◆ if_index

unsigned int if_index

Index to bound host interface, or 0 if none. Use if_indextoname() to translate into an interface name.

Definition at line 81 of file pktdev.h.

◆ admin_state

bool admin_state

State of the interface up or down

Definition at line 83 of file pktdev.h.

◆ min_mtu

uint16_t min_mtu

Minimum MTU allowed

Definition at line 84 of file pktdev.h.

◆ max_mtu

uint16_t max_mtu

Maximum MTU allowed

Definition at line 85 of file pktdev.h.

◆ min_rx_bufsize

uint32_t min_rx_bufsize

Minimum size of RX buffer.

Definition at line 86 of file pktdev.h.

◆ max_rx_pktlen

uint32_t max_rx_pktlen

Maximum configurable length of RX pkt.

Definition at line 87 of file pktdev.h.

◆ min_tx_bufsize

uint32_t min_tx_bufsize

Minimum size of TX buffer.

Definition at line 88 of file pktdev.h.

◆ hash_key_size

uint8_t hash_key_size

Hash key size in bytes

Definition at line 89 of file pktdev.h.

◆ speed_capa

uint32_t speed_capa

Bit mask of RSS offloads, the bit offset also means flow type Supported speeds bitmap (ETH_LINK_SPEED_).

Definition at line 91 of file pktdev.h.

◆ default_rxportconf

struct pktdev_portconf default_rxportconf

Rx parameter recommendations

Definition at line 91 of file pktdev.h.

◆ default_txportconf

struct pktdev_portconf default_txportconf

Tx parameter recommendations

Definition at line 91 of file pktdev.h.

◆ dev_capa

uint64_t dev_capa

Generic device capabilities (PKTDEV_DEV_CAPA_).

Definition at line 97 of file pktdev.h.


The documentation for this struct was generated from the following file: