FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
VOM::gbp_rule::hash_mode_t Struct Reference

hash mode enum More...

+ Inheritance diagram for VOM::gbp_rule::hash_mode_t:
+ Collaboration diagram for VOM::gbp_rule::hash_mode_t:

Static Public Member Functions

static const hash_mode_tfrom_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_baseoperator= (const enum_base &e)
 Assignment. 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...
 

Detailed Description

hash mode enum

Definition at line 105 of file gbp_rule.hpp.

Member Function Documentation

◆ from_int()

const gbp_rule::hash_mode_t & VOM::gbp_rule::hash_mode_t::from_int ( vapi_enum_gbp_hash_mode  i)
static

create the hash mode from int value

Definition at line 91 of file gbp_rule.cpp.

+ Here is the caller graph for this function:

Field Documentation

◆ DST_IP

const gbp_rule::hash_mode_t VOM::gbp_rule::hash_mode_t::DST_IP
static

Flow hash is calculated based on DST IP.

Definition at line 116 of file gbp_rule.hpp.

◆ SRC_IP

const gbp_rule::hash_mode_t VOM::gbp_rule::hash_mode_t::SRC_IP
static

Flow Hash is calculated based on SRC IP in case of load balancing.

Definition at line 111 of file gbp_rule.hpp.

◆ SYMMETRIC

const gbp_rule::hash_mode_t VOM::gbp_rule::hash_mode_t::SYMMETRIC
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.


The documentation for this struct was generated from the following files: