|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __IP_FLOW_HASH_H__
17 #define __IP_FLOW_HASH_H__
22 #define IP_FLOW_HASH_DEFAULT (0x9F)
24 #define foreach_flow_hash_bit_v1 \
25 _ (src, IP_FLOW_HASH_SRC_ADDR) \
26 _ (dst, IP_FLOW_HASH_DST_ADDR) \
27 _ (sport, IP_FLOW_HASH_SRC_PORT) \
28 _ (dport, IP_FLOW_HASH_DST_PORT) \
29 _ (proto, IP_FLOW_HASH_PROTO) \
30 _ (reverse, IP_FLOW_HASH_REVERSE_SRC_DST) \
31 _ (symmetric, IP_FLOW_HASH_SYMMETRIC)
33 #define foreach_flow_hash_bit \
34 _ (src, 0, IP_FLOW_HASH_SRC_ADDR) \
35 _ (dst, 1, IP_FLOW_HASH_DST_ADDR) \
36 _ (sport, 2, IP_FLOW_HASH_SRC_PORT) \
37 _ (dport, 3, IP_FLOW_HASH_DST_PORT) \
38 _ (proto, 4, IP_FLOW_HASH_PROTO) \
39 _ (reverse, 5, IP_FLOW_HASH_REVERSE_SRC_DST) \
40 _ (symmetric, 6, IP_FLOW_HASH_SYMMETRIC) \
41 _ (flowlabel, 7, IP_FLOW_HASH_FL)
48 #define _(a, b, c) c = (1 << b),
int ip_flow_hash_set(ip_address_family_t af, u32 table_id, flow_hash_config_t flow_hash_config)
flow_hash_config_t_
A flow hash configuration is a mask of the flow hash options.
enum flow_hash_config_t_ flow_hash_config_t
A flow hash configuration is a mask of the flow hash options.
void ip_flow_hash_router_id_set(u32 router_id)
u32 ip_flow_hash_router_id
#define foreach_flow_hash_bit
vl_api_address_family_t af
enum ip_address_family_t_ ip_address_family_t