DOCA-AR 1.0
 
Loading...
Searching...
No Matches
doca_ar_env.h File Reference

build base enviroment of DPDK and Doca-Flow More...

#include <string.h>
#include <rte_byteorder.h>
#include <doca_log.h>
#include <doca_argp.h>
#include <dpdk_utils.h>
#include <doca_flow.h>
#include <rte_ether.h>
#include <rte_ip.h>
#include <rte_udp.h>
#include <rte_tcp.h>

Go to the source code of this file.

Macros

#define NB_PORTS   2
 we use 2 SF ports
 

Functions

int doca_ar_env_init (int argc, char **argv)
 build doca-flow and dpdk env
 
void doca_ar_env_destroy ()
 release all the resource of dpdk and doca-flow
 

Variables

int to_host_port
 port connected with host pf
 
int to_net_port
 port connected with uplink port
 
struct doca_flow_port * ports [NB_PORTS]
 pointer of doca-flow port
 
struct application_dpdk_config dpdk_config
 dpdk config
 

Detailed Description

build base enviroment of DPDK and Doca-Flow

Author
Mark Chen (markc.nosp@m.hen7.nosp@m.7888@.nosp@m.gmai.nosp@m.l.com)
Version
1.0
Date
2024-01-07

Macro Definition Documentation

◆ NB_PORTS

#define NB_PORTS   2

we use 2 SF ports

Function Documentation

◆ doca_ar_env_destroy()

void doca_ar_env_destroy ( )

release all the resource of dpdk and doca-flow

◆ doca_ar_env_init()

int doca_ar_env_init ( int argc,
char ** argv )

build doca-flow and dpdk env

Parameters
argc
argv
Returns
int

Variable Documentation

◆ dpdk_config

struct application_dpdk_config dpdk_config
extern

dpdk config

◆ ports

struct doca_flow_port* ports[NB_PORTS]
extern

pointer of doca-flow port

◆ to_host_port

int to_host_port
extern

port connected with host pf

◆ to_net_port

int to_net_port
extern

port connected with uplink port