FD.io VPP
v19.08.3-2-gbabecb413
Vector Packet Processing
|
hash mode enum More...
Static Public Member Functions | |
static const hash_mode_t & | from_int (vapi_enum_gbp_hash_mode i) |
create the hash mode from int value More... | |
Static Public Attributes | |
static const hash_mode_t | SRC_IP |
Flow Hash is calculated based on SRC IP in case of load balancing. More... | |
static const hash_mode_t | DST_IP |
Flow hash is calculated based on DST IP. More... | |
static const hash_mode_t | SYMMETRIC |
Flow hash is calculated based on SRC IP, DST IP and Protocol. More... | |
Additional Inherited Members | |
Public Member Functions inherited from VOM::enum_base< hash_mode_t > | |
const std::string & | to_string () const |
convert to string format for debug purposes More... | |
bool | operator== (const enum_base &e) const |
Comparison operator. More... | |
enum_base & | operator= (const enum_base &e) |
Assignment. More... | |
enum_base & | operator|= (const enum_base &e) |
bitwise or assignemnt More... | |
enum_base | operator| (const enum_base &e1) const |
bitwise or More... | |
bool | operator!= (const enum_base &e) const |
Comparison operator. More... | |
operator int () const | |
integer conversion operator More... | |
int | value () const |
Return the value of the enum - same as integer conversion. More... | |
Protected Member Functions inherited from VOM::enum_base< hash_mode_t > | |
enum_base (int value, const std::string desc) | |
Constructor of an enum - takes value and string description. More... | |
virtual | ~enum_base () |
Constructor. More... | |
hash mode enum
Definition at line 105 of file gbp_rule.hpp.
|
static |
create the hash mode from int value
Definition at line 91 of file gbp_rule.cpp.
|
static |
Flow hash is calculated based on DST IP.
Definition at line 116 of file gbp_rule.hpp.
|
static |
Flow Hash is calculated based on SRC IP in case of load balancing.
Definition at line 111 of file gbp_rule.hpp.
|
static |
Flow hash is calculated based on SRC IP, DST IP and Protocol.
SRC IP and DST IP addresses are sorted before hash such that a same hash is generated in both directions.
Definition at line 124 of file gbp_rule.hpp.