FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
ip_flow_hash.h File Reference
+ Include dependency graph for ip_flow_hash.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IP_FLOW_HASH_DEFAULT   (0x9F)
 Default: 5-tuple + flowlabel without the "reverse" bit. More...
 
#define foreach_flow_hash_bit_v1
 
#define foreach_flow_hash_bit
 

Typedefs

typedef enum flow_hash_config_t_ flow_hash_config_t
 A flow hash configuration is a mask of the flow hash options. More...
 

Enumerations

enum  flow_hash_config_t_ { foreach_flow_hash_bit }
 A flow hash configuration is a mask of the flow hash options. More...
 

Functions

int ip_flow_hash_set (ip_address_family_t af, u32 table_id, flow_hash_config_t flow_hash_config)
 
void ip_flow_hash_router_id_set (u32 router_id)
 

Variables

u32 ip_flow_hash_router_id
 

Macro Definition Documentation

◆ foreach_flow_hash_bit

#define foreach_flow_hash_bit
Value:
_ (src, 0, IP_FLOW_HASH_SRC_ADDR) \
_ (dst, 1, IP_FLOW_HASH_DST_ADDR) \
_ (sport, 2, IP_FLOW_HASH_SRC_PORT) \
_ (dport, 3, IP_FLOW_HASH_DST_PORT) \
_ (proto, 4, IP_FLOW_HASH_PROTO) \
_ (reverse, 5, IP_FLOW_HASH_REVERSE_SRC_DST) \
_ (symmetric, 6, IP_FLOW_HASH_SYMMETRIC) \
_ (flowlabel, 7, IP_FLOW_HASH_FL)

Definition at line 33 of file ip_flow_hash.h.

◆ foreach_flow_hash_bit_v1

#define foreach_flow_hash_bit_v1
Value:
_ (src, IP_FLOW_HASH_SRC_ADDR) \
_ (dst, IP_FLOW_HASH_DST_ADDR) \
_ (sport, IP_FLOW_HASH_SRC_PORT) \
_ (dport, IP_FLOW_HASH_DST_PORT) \
_ (proto, IP_FLOW_HASH_PROTO) \
_ (reverse, IP_FLOW_HASH_REVERSE_SRC_DST) \
_ (symmetric, IP_FLOW_HASH_SYMMETRIC)

Definition at line 24 of file ip_flow_hash.h.

◆ IP_FLOW_HASH_DEFAULT

#define IP_FLOW_HASH_DEFAULT   (0x9F)

Default: 5-tuple + flowlabel without the "reverse" bit.

Definition at line 22 of file ip_flow_hash.h.

Typedef Documentation

◆ flow_hash_config_t

A flow hash configuration is a mask of the flow hash options.

Enumeration Type Documentation

◆ flow_hash_config_t_

A flow hash configuration is a mask of the flow hash options.

Enumerator
foreach_flow_hash_bit 

Definition at line 46 of file ip_flow_hash.h.

Function Documentation

◆ ip_flow_hash_router_id_set()

void ip_flow_hash_router_id_set ( u32  router_id)

Definition at line 209 of file ip.c.

+ Here is the caller graph for this function:

◆ ip_flow_hash_set()

int ip_flow_hash_set ( ip_address_family_t  af,
u32  table_id,
flow_hash_config_t  flow_hash_config 
)

Variable Documentation

◆ ip_flow_hash_router_id

u32 ip_flow_hash_router_id

Definition at line 19 of file ip.c.

sport
u16 sport
Definition: pnat.api:43
src
vl_api_address_t src
Definition: gre.api:54
dport
u16 dport
Definition: pnat.api:44
dst
vl_api_ip4_address_t dst
Definition: pnat.api:41
proto
vl_api_ip_proto_t proto
Definition: acl_types.api:51