diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2018-11-20 11:11:12 +0100 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-11-26 17:07:48 +0000 |
commit | 2af0e3a74c40e5df946813324574ccc18feb4761 (patch) | |
tree | fffbb9995f1cd0413d9de78cf779356cfdf8e5f7 /src/vnet/ip/lookup.h | |
parent | ab11ec9ab94ffdf164daa2b5006dab4e388a966e (diff) |
flow-hash: Add symmetric flag for flow hashing
When 'Symmetric' flag is enabled, it will sort the addresses
and hence, same flow hash will be calculated on both directions.
Change-Id: I5d846f8d0b94ca1121e03d15b02bb56edb5887b1
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/ip/lookup.h')
-rw-r--r-- | src/vnet/ip/lookup.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vnet/ip/lookup.h b/src/vnet/ip/lookup.h index 374023835f4..4c598e3a460 100644 --- a/src/vnet/ip/lookup.h +++ b/src/vnet/ip/lookup.h @@ -64,6 +64,7 @@ #define IP_FLOW_HASH_SRC_PORT (1<<3) #define IP_FLOW_HASH_DST_PORT (1<<4) #define IP_FLOW_HASH_REVERSE_SRC_DST (1<<5) +#define IP_FLOW_HASH_SYMMETRIC (1<<6) /** Default: 5-tuple without the "reverse" bit */ #define IP_FLOW_HASH_DEFAULT (0x1F) @@ -74,7 +75,8 @@ _(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) +_(reverse, IP_FLOW_HASH_REVERSE_SRC_DST) \ +_(symmetric, IP_FLOW_HASH_SYMMETRIC) /** * A flow hash configuration is a mask of the flow hash options |