TAPI functions to support l2fwd

Overview

TAPI to handle DPDK l2fwd operations

Copyright (C) 2020-2022 OKTET Labs Ltd. More…

// typedefs

typedef struct tapi_dpdk_l2fwd_job_t tapi_dpdk_l2fwd_job_t;

// structs

struct tapi_dpdk_l2fwd_job_t;

// global functions

te_errno tapi_dpdk_l2fwd_start(tapi_dpdk_l2fwd_job_t* l2fwd_job);
te_errno tapi_dpdk_l2fwd_destroy(tapi_dpdk_l2fwd_job_t* l2fwd_job);
te_errno tapi_dpdk_l2fwd_get_stats(tapi_dpdk_l2fwd_job_t* l2fwd_job, te_meas_stats_t* tx, te_meas_stats_t* rx);
te_errno tapi_dpdk_create_l2fwd_job(rcf_rpc_server* rpcs, tapi_env* env, unsigned int n_fwd_cpus, const tapi_cpu_prop_t* prop, te_kvpair_h* test_args, tapi_dpdk_l2fwd_job_t* l2fwd_job);

// macros

#define TAPI_DPDK_L2FWD_RECEIVE_TIMEOUT_MS
#define TAPI_DPDK_L2FWD_TERM_TIMEOUT_MS

Detailed Documentation

TAPI to handle DPDK l2fwd operations

Copyright (C) 2020-2022 OKTET Labs Ltd. All rights reserved.

Typedefs

typedef struct tapi_dpdk_l2fwd_job_t tapi_dpdk_l2fwd_job_t

L2fwd job description

Global Functions

te_errno tapi_dpdk_create_l2fwd_job(rcf_rpc_server* rpcs, tapi_env* env, unsigned int n_fwd_cpus, const tapi_cpu_prop_t* prop, te_kvpair_h* test_args, tapi_dpdk_l2fwd_job_t* l2fwd_job)

Create a job for l2fwd binary execution. The created job can be manipulated with other tapi_dpdk functions as well as passed to generic tapi_job functions.

prop is advisory

Parameters:

rpcs

RPC server to run l2fwd on

env

Test environment

n_fwd_cpus

Number of l2fwd forwarding CPUs

prop

Advisory properties of CPUs

test_args

Test arguments

l2fwd_job

Pointer to the l2fwd job

Returns:

Status code

Macros

#define TAPI_DPDK_L2FWD_RECEIVE_TIMEOUT_MS

Timeout to wait for job receiving

#define TAPI_DPDK_L2FWD_TERM_TIMEOUT_MS

Timeout for job termination