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