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

#include <ksync_flow_index_manager.h>

Collaboration diagram for KSyncFlowIndexManager:

Classes

struct  IndexEntry
 

Public Member Functions

 KSyncFlowIndexManager (KSync *ksync)
 
virtual ~KSyncFlowIndexManager ()
 
void InitDone (uint32_t count)
 
FlowEntryPtr FindByIndex (uint32_t idx)
 
void Update (FlowEntry *flow)
 
void Delete (FlowEntry *flow)
 
void DisableSend (FlowEntry *flow, uint8_t evict_gen_id)
 
void UpdateFlowHandle (FlowTableKSyncEntry *kentry, uint32_t index, uint8_t gen_id)
 
void TriggerKSyncEvent (FlowTableKSyncEntry *kentry, KSyncEntry::KSyncEvent event)
 
uint16_t sm_log_count () const
 

Static Public Attributes

static const uint8_t kActiveGenIdDiffMax = 127
 

Private Member Functions

uint8_t AcquireIndexUnLocked (uint32_t index, uint8_t gen_id, FlowEntry *flow)
 
void ReleaseIndexUnLocked (FlowEntry *flow)
 
void CreateInternal (FlowEntry *flow)
 

Private Attributes

KSyncksync_
 
FlowProtoproto_
 
uint32_t count_
 
struct IndexEntryindex_list_
 
uint16_t sm_log_count_
 

Detailed Description

Definition at line 28 of file ksync_flow_index_manager.h.

Constructor & Destructor Documentation

KSyncFlowIndexManager::KSyncFlowIndexManager ( KSync ksync)

Definition at line 24 of file ksync_flow_index_manager.cc.

KSyncFlowIndexManager::~KSyncFlowIndexManager ( )
virtual

Definition at line 28 of file ksync_flow_index_manager.cc.

Member Function Documentation

uint8_t KSyncFlowIndexManager::AcquireIndexUnLocked ( uint32_t  index,
uint8_t  gen_id,
FlowEntry flow 
)
private

Definition at line 213 of file ksync_flow_index_manager.cc.

Here is the call graph for this function:

void KSyncFlowIndexManager::CreateInternal ( FlowEntry flow)
private

Definition at line 268 of file ksync_flow_index_manager.cc.

Here is the call graph for this function:

void KSyncFlowIndexManager::Delete ( FlowEntry flow)

Definition at line 89 of file ksync_flow_index_manager.cc.

Here is the call graph for this function:

void KSyncFlowIndexManager::DisableSend ( FlowEntry flow,
uint8_t  evict_gen_id 
)

Definition at line 111 of file ksync_flow_index_manager.cc.

Here is the call graph for this function:

FlowEntryPtr KSyncFlowIndexManager::FindByIndex ( uint32_t  idx)

Definition at line 43 of file ksync_flow_index_manager.cc.

void KSyncFlowIndexManager::InitDone ( uint32_t  count)

Definition at line 33 of file ksync_flow_index_manager.cc.

Here is the call graph for this function:

void KSyncFlowIndexManager::ReleaseIndexUnLocked ( FlowEntry flow)
private

Definition at line 258 of file ksync_flow_index_manager.cc.

Here is the call graph for this function:

uint16_t KSyncFlowIndexManager::sm_log_count ( ) const
inline

Definition at line 61 of file ksync_flow_index_manager.h.

void KSyncFlowIndexManager::TriggerKSyncEvent ( FlowTableKSyncEntry kentry,
KSyncEntry::KSyncEvent  event 
)

Definition at line 200 of file ksync_flow_index_manager.cc.

Here is the call graph for this function:

void KSyncFlowIndexManager::Update ( FlowEntry flow)

Definition at line 57 of file ksync_flow_index_manager.cc.

Here is the call graph for this function:

void KSyncFlowIndexManager::UpdateFlowHandle ( FlowTableKSyncEntry kentry,
uint32_t  index,
uint8_t  gen_id 
)

Definition at line 130 of file ksync_flow_index_manager.cc.

Here is the call graph for this function:

Member Data Documentation

uint32_t KSyncFlowIndexManager::count_
private

Definition at line 72 of file ksync_flow_index_manager.h.

struct IndexEntry* KSyncFlowIndexManager::index_list_
private

Definition at line 73 of file ksync_flow_index_manager.h.

const uint8_t KSyncFlowIndexManager::kActiveGenIdDiffMax = 127
static

Definition at line 32 of file ksync_flow_index_manager.h.

KSync* KSyncFlowIndexManager::ksync_
private

Definition at line 70 of file ksync_flow_index_manager.h.

FlowProto* KSyncFlowIndexManager::proto_
private

Definition at line 71 of file ksync_flow_index_manager.h.

uint16_t KSyncFlowIndexManager::sm_log_count_
private

Definition at line 74 of file ksync_flow_index_manager.h.


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