FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
flow.c File Reference
+ Include dependency graph for flow.c:

Go to the source code of this file.

Macros

#define FLOW_IS_L2_LAYER(f)   (f->type == VNET_FLOW_TYPE_ETHERNET)
 
#define FLOW_IS_L4_LAYER(f)
 
#define FLOW_IS_L4_TUNNEL_LAYER(f)
 

Functions

static bool mac_address_is_all_zero (const u8 addr[6])
 
static int dpdk_flow_add (dpdk_device_t *xd, vnet_flow_t *f, dpdk_flow_entry_t *fe)
 
int dpdk_flow_ops_fn (vnet_main_t *vnm, vnet_flow_dev_op_t op, u32 dev_instance, u32 flow_index, uword *private_data)
 
u8format_dpdk_flow (u8 *s, va_list *args)
 

Variables

static const struct rte_flow_attr ingress = {.ingress = 1 }
 

Macro Definition Documentation

◆ FLOW_IS_L2_LAYER

#define FLOW_IS_L2_LAYER (   f)    (f->type == VNET_FLOW_TYPE_ETHERNET)

Definition at line 32 of file flow.c.

◆ FLOW_IS_L4_LAYER

#define FLOW_IS_L4_LAYER (   f)
Value:
((f->type == VNET_FLOW_TYPE_IP4_N_TUPLE) || \
(f->type == VNET_FLOW_TYPE_IP6_N_TUPLE))

Definition at line 36 of file flow.c.

◆ FLOW_IS_L4_TUNNEL_LAYER

#define FLOW_IS_L4_TUNNEL_LAYER (   f)
Value:
((f->type >= VNET_FLOW_TYPE_IP4_VXLAN) || \
(f->type <= VNET_FLOW_TYPE_IP6_GTPU_IP6))

Definition at line 41 of file flow.c.

Function Documentation

◆ dpdk_flow_add()

static int dpdk_flow_add ( dpdk_device_t xd,
vnet_flow_t f,
dpdk_flow_entry_t fe 
)
static

Definition at line 61 of file flow.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dpdk_flow_ops_fn()

int dpdk_flow_ops_fn ( vnet_main_t vnm,
vnet_flow_dev_op_t  op,
u32  dev_instance,
u32  flow_index,
uword private_data 
)

Definition at line 557 of file flow.c.

+ Here is the call graph for this function:

◆ format_dpdk_flow()

u8* format_dpdk_flow ( u8 s,
va_list *  args 
)

Definition at line 691 of file flow.c.

+ Here is the call graph for this function:

◆ mac_address_is_all_zero()

static bool mac_address_is_all_zero ( const u8  addr[6])
inlinestatic

Definition at line 49 of file flow.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ ingress

const struct rte_flow_attr ingress = {.ingress = 1 }
static

Definition at line 46 of file flow.c.