OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
VnFlowMgmtEntry Class Reference

#include <flow_mgmt_entry.h>

Inheritance diagram for VnFlowMgmtEntry:
Collaboration diagram for VnFlowMgmtEntry:

Public Member Functions

 VnFlowMgmtEntry ()
 
virtual ~VnFlowMgmtEntry ()
 
void UpdateCounterOnAdd (FlowEntry *flow, bool add_flow, bool local_flow, bool old_ingress)
 
void UpdateCounterOnDel (FlowEntry *flow, bool local_flow, bool old_ingress)
 
uint32_t ingress_flow_count () const
 
uint32_t egress_flow_count () const
 
- Public Member Functions inherited from FlowMgmtEntry
 FlowMgmtEntry ()
 
virtual ~FlowMgmtEntry ()
 
uint32_t Size () const
 
virtual bool Add (FlowEntry *flow, FlowMgmtKeyNode *node)
 
virtual bool Delete (FlowEntry *flow, FlowMgmtKeyNode *node)
 
virtual bool OperEntryAdd (FlowMgmtManager *mgr, const FlowMgmtRequest *req, FlowMgmtKey *key)
 
virtual bool OperEntryChange (FlowMgmtManager *mgr, const FlowMgmtRequest *req, FlowMgmtKey *key)
 
virtual bool OperEntryDelete (FlowMgmtManager *mgr, const FlowMgmtRequest *req, FlowMgmtKey *key)
 
virtual bool NonOperEntryDelete (FlowMgmtManager *mgr, const FlowMgmtRequest *req, FlowMgmtKey *key)
 
virtual bool CanDelete () const
 
void set_oper_state (State state)
 
State oper_state () const
 
uint32_t gen_id () const
 
const FlowListflow_list () const
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (VnFlowMgmtEntry)
 

Private Attributes

uint32_t ingress_flow_count_
 
uint32_t egress_flow_count_
 

Additional Inherited Members

- Public Types inherited from FlowMgmtEntry
enum  State { INVALID, OPER_NOT_SEEN, OPER_ADD_SEEN, OPER_DEL_SEEN }
 
typedef
boost::intrusive::member_hook
< FlowMgmtKeyNode,
boost::intrusive::list_member_hook
<>,&FlowMgmtKeyNode::hook_
Node
 
typedef boost::intrusive::list
< FlowMgmtKeyNode, Node
FlowList
 
- Static Public Attributes inherited from FlowMgmtEntry
static const int MaxResponses = 100
 
- Protected Attributes inherited from FlowMgmtEntry
State oper_state_
 
uint32_t gen_id_
 
FlowList flow_list_
 

Detailed Description

Definition at line 114 of file flow_mgmt_entry.h.

Constructor & Destructor Documentation

VnFlowMgmtEntry::VnFlowMgmtEntry ( )
inline

Definition at line 116 of file flow_mgmt_entry.h.

virtual VnFlowMgmtEntry::~VnFlowMgmtEntry ( )
inlinevirtual

Definition at line 119 of file flow_mgmt_entry.h.

Member Function Documentation

VnFlowMgmtEntry::DISALLOW_COPY_AND_ASSIGN ( VnFlowMgmtEntry  )
private
uint32_t VnFlowMgmtEntry::egress_flow_count ( ) const
inline

Definition at line 125 of file flow_mgmt_entry.h.

uint32_t VnFlowMgmtEntry::ingress_flow_count ( ) const
inline

Definition at line 124 of file flow_mgmt_entry.h.

void VnFlowMgmtEntry::UpdateCounterOnAdd ( FlowEntry flow,
bool  add_flow,
bool  local_flow,
bool  old_ingress 
)

Definition at line 240 of file flow_mgmt_entry.cc.

Here is the call graph for this function:

void VnFlowMgmtEntry::UpdateCounterOnDel ( FlowEntry flow,
bool  local_flow,
bool  old_ingress 
)

Definition at line 270 of file flow_mgmt_entry.cc.

Member Data Documentation

uint32_t VnFlowMgmtEntry::egress_flow_count_
private

Definition at line 129 of file flow_mgmt_entry.h.

uint32_t VnFlowMgmtEntry::ingress_flow_count_
private

Definition at line 128 of file flow_mgmt_entry.h.


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