DOCA-AR 1.0
 
Loading...
Searching...
No Matches
doca_ar_env.h
Go to the documentation of this file.
1
12#ifndef DOCA_AR_ENV_H_
13#define DOCA_AR_ENV_H_
14#include <string.h>
15#include <rte_byteorder.h>
16#include <doca_log.h>
17#include <doca_argp.h>
18#include <dpdk_utils.h>
19#include <doca_flow.h>
20#include <rte_ether.h>
21#include <rte_ip.h>
22#include <rte_udp.h>
23#include <rte_tcp.h>
24
25#define NB_PORTS 2
26extern int to_host_port;
27extern int to_net_port;
28extern struct doca_flow_port *ports[NB_PORTS];
29extern struct application_dpdk_config dpdk_config;
37int doca_ar_env_init(int argc, char **argv);
43#endif /* DOCA_AR_ENV_H_ */
struct application_dpdk_config dpdk_config
dpdk config
Definition doca_ar_env.c:16
int to_net_port
port connected with uplink port
Definition doca_ar_env.c:24
#define NB_PORTS
we use 2 SF ports
Definition doca_ar_env.h:25
struct doca_flow_port * ports[NB_PORTS]
pointer of doca-flow port
Definition doca_ar_env.c:15
int doca_ar_env_init(int argc, char **argv)
build doca-flow and dpdk env
Definition doca_ar_env.c:115
int to_host_port
port connected with host pf
Definition doca_ar_env.c:23
void doca_ar_env_destroy()
release all the resource of dpdk and doca-flow
Definition doca_ar_env.c:169