PCI devices configuration of Test Agents

Overview

// typedefs

typedef enum tapi_cfg_ovs_cfg_type tapi_cfg_ovs_cfg_type;
typedef struct tapi_cfg_ovs_cfg tapi_cfg_ovs_cfg;

// enums

enum tapi_cfg_ovs_cfg_type;

// structs

struct tapi_cfg_ovs_cfg;

// global variables

const char*const tapi_cfg_ovs_cfg_name[] = {     [TAPI_CFG_OVS_CFG_DPDK_ALLOC_MEM] = TAPI_OVS_OTHER_CFG ":dpdk-alloc-mem",     [TAPI_CFG_OVS_CFG_DPDK_SOCKET_MEM] = TAPI_OVS_OTHER_CFG ":dpdk-socket-mem",     [TAPI_CFG_OVS_CFG_DPDK_LCORE_MASK] = TAPI_OVS_OTHER_CFG ":dpdk-lcore-mask",     [TAPI_CFG_OVS_CFG_DPDK_HUGEPAGE_DIR] =         TAPI_OVS_OTHER_CFG ":dpdk-hugepage-dir",     [TAPI_CFG_OVS_CFG_DPDK_SOCKET_LIMIT] =         TAPI_OVS_OTHER_CFG ":dpdk-socket-limit",     [TAPI_CFG_OVS_CFG_DPDK_EXTRA] = TAPI_OVS_OTHER_CFG ":dpdk-extra", };

// global functions

te_errno tapi_cfg_ovs_convert_eal_args(int argc, const char*const* argv, tapi_cfg_ovs_cfg* ovs_cfg);

Detailed Documentation

Typedefs

typedef enum tapi_cfg_ovs_cfg_type tapi_cfg_ovs_cfg_type

Configuration entry type, see tapi_cfg_ovs_cfg_name for details

typedef struct tapi_cfg_ovs_cfg tapi_cfg_ovs_cfg

Open vSwitch Configuration entry array

Global Variables

const char*const tapi_cfg_ovs_cfg_name[] = {     [TAPI_CFG_OVS_CFG_DPDK_ALLOC_MEM] = TAPI_OVS_OTHER_CFG ":dpdk-alloc-mem",     [TAPI_CFG_OVS_CFG_DPDK_SOCKET_MEM] = TAPI_OVS_OTHER_CFG ":dpdk-socket-mem",     [TAPI_CFG_OVS_CFG_DPDK_LCORE_MASK] = TAPI_OVS_OTHER_CFG ":dpdk-lcore-mask",     [TAPI_CFG_OVS_CFG_DPDK_HUGEPAGE_DIR] =         TAPI_OVS_OTHER_CFG ":dpdk-hugepage-dir",     [TAPI_CFG_OVS_CFG_DPDK_SOCKET_LIMIT] =         TAPI_OVS_OTHER_CFG ":dpdk-socket-limit",     [TAPI_CFG_OVS_CFG_DPDK_EXTRA] = TAPI_OVS_OTHER_CFG ":dpdk-extra", }

Configuration entry name. Names correspond to Open vSwitch configuration entries.

Global Functions

te_errno tapi_cfg_ovs_convert_eal_args(int argc, const char*const* argv, tapi_cfg_ovs_cfg* ovs_cfg)

Convert raw DPDK EAL arguments into Open vSwitch configuration entries.

Parameters:

argc

Number of arguments

argv

EAL arguments

ovs_cfg

Open vSwitch configuraion

Returns:

Status code