struct test_ethdev_config

Overview

Information about the configuration of the Ethernet device More...

#include <dpdk_pmd_ts.h>

struct test_ethdev_config {
    // fields

    tapi_env* env;
    rcf_rpc_server* rpcs;
    test_ethdev_state cur_state;
    te_bool closed;
    int argc;
    const char** argv;
    struct tarpc_rte_eth_dev_info dev_info;
    struct tarpc_rte_eth_conf* eth_conf;
    const char* bus_name;
    char dev_name[RPC_RTE_ETH_NAME_MAX_LEN];
    uint16_t port_id;
    int socket_id;
    uint16_t nb_rx_queue;
    uint16_t nb_tx_queue;
    uint16_t min_rx_desc;
    uint16_t min_tx_desc;
    uint16_t required_mtu;
    te_bool is_rx_setup;
    struct tarpc_rte_eth_rxconf** rx_confs;
    struct tarpc_rte_eth_txconf** tx_confs;
    rpc_rte_mempool_p mp;
    struct test_rx_mq* rx_mq;
};

Detailed Documentation

Information about the configuration of the Ethernet device

Fields

tapi_env* env

Environment binding

rcf_rpc_server* rpcs

RPC server handle

test_ethdev_state cur_state

The current device state

te_bool closed

Device close call indicator

int argc

Number of additional EAL arguments

const char** argv

Additional EAL arguments

struct tarpc_rte_eth_dev_info dev_info

Ethernet device information

struct tarpc_rte_eth_conf* eth_conf

A structure used to configure an Ethernet port

const char* bus_name

EAL generic bus name

char dev_name[RPC_RTE_ETH_NAME_MAX_LEN]

Device name

uint16_t port_id

The port identifier of the device

int socket_id

The socket identifier where the memory should be allocated

uint16_t nb_rx_queue

The number of receive queues

uint16_t nb_tx_queue

The number of transmit queues

uint16_t min_rx_desc

The minimum number of receive descriptors per queue

uint16_t min_tx_desc

The minimum number of transmit descriptors per queue

uint16_t required_mtu

The required MTU to which default configuration items will be adjusted

te_bool is_rx_setup

The RX queues setup indicator

struct tarpc_rte_eth_rxconf** rx_confs

Array of structures used to configure RX qeueus

struct tarpc_rte_eth_txconf** tx_confs

Array of structures used to configure TX qeueus

rpc_rte_mempool_p mp

RTE mempool pointer

struct test_rx_mq* rx_mq

Rx multi-queue setup data