OpenSDN source code
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
flow_entry_info.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018 Juniper Networks, Inc. All rights reserved.
3
*/
4
5
#ifndef __AGENT_PKT_FLOW_ENTRY_INFO_H__
6
#define __AGENT_PKT_FLOW_ENTRY_INFO_H__
7
8
#include <
pkt/flow_mgmt/flow_mgmt_tree.h
>
9
11
// Per flow information stored in flow-mgmt module. Holds a reference to
12
// flow so that flow active till flow-mgmt processing is done
14
class
FlowEntryInfo
{
15
public
:
16
FlowEntryInfo
(
FlowEntry
*flow) :
17
flow_
(flow),
tree_
(),
count_
(0),
ingress_
(false),
local_flow_
(false) {
18
}
19
virtual
~FlowEntryInfo
() { assert(
tree_
.size() == 0); }
20
const
FlowMgmtKeyTree
&
tree
()
const
{
return
tree_
; }
21
22
private
:
23
friend
class
FlowMgmtManager
;
24
FlowEntryPtr
flow_
;
25
FlowMgmtKeyTree
tree_
;
26
uint32_t
count_
;
// Number of times tree modified
27
bool
ingress_
;
28
bool
local_flow_
;
29
DISALLOW_COPY_AND_ASSIGN
(
FlowEntryInfo
);
30
};
31
32
#endif // __AGENT_PKT_FLOW_ENTRY_INFO_H__
FlowMgmtManager
Definition:
flow_mgmt.h:238
FlowEntryInfo::tree_
FlowMgmtKeyTree tree_
Definition:
flow_entry_info.h:25
flow_mgmt_tree.h
FlowEntryInfo::local_flow_
bool local_flow_
Definition:
flow_entry_info.h:28
FlowEntryInfo::DISALLOW_COPY_AND_ASSIGN
DISALLOW_COPY_AND_ASSIGN(FlowEntryInfo)
FlowEntryInfo::ingress_
bool ingress_
Definition:
flow_entry_info.h:27
FlowEntry
Definition:
flow_entry.h:460
FlowMgmtKeyTree
std::map< FlowMgmtKey *, FlowMgmtKeyNode *, FlowMgmtKeyCmp > FlowMgmtKeyTree
Definition:
flow_mgmt_tree.h:15
FlowEntryInfo
Definition:
flow_entry_info.h:14
FlowEntryInfo::tree
const FlowMgmtKeyTree & tree() const
Definition:
flow_entry_info.h:20
FlowEntryInfo::flow_
FlowEntryPtr flow_
Definition:
flow_entry_info.h:24
FlowEntryInfo::~FlowEntryInfo
virtual ~FlowEntryInfo()
Definition:
flow_entry_info.h:19
FlowEntryInfo::count_
uint32_t count_
Definition:
flow_entry_info.h:26
FlowEntryInfo::FlowEntryInfo
FlowEntryInfo(FlowEntry *flow)
Definition:
flow_entry_info.h:16
FlowEntryPtr
boost::intrusive_ptr< FlowEntry > FlowEntryPtr
Definition:
flow_entry.h:125
contrail
controller
src
vnsw
agent
pkt
flow_mgmt
flow_entry_info.h
Generated by
1.8.5