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_export_info.cc
Go to the documentation of this file.
1
#include <
vrouter/flow_stats/flow_stats_collector.h
>
2
#include <
pkt/flow_table.h
>
3
4
FlowExportInfo::FlowExportInfo
() :
5
flow_(), teardown_time_(0), last_modified_time_(0),
6
bytes_(0), packets_(0),
7
delete_enqueue_time_(0), evict_enqueue_time_(0),
8
gen_id_(0),
9
flow_handle_(
FlowEntry
::kInvalidFlowHandle) {
10
}
11
12
FlowExportInfo::FlowExportInfo
(
const
FlowEntryPtr
&fe) :
13
flow_(fe), teardown_time_(0), last_modified_time_(0),
14
bytes_(0), packets_(0),
15
delete_enqueue_time_(0), evict_enqueue_time_(0),
16
gen_id_(0),
17
flow_handle_(
FlowEntry
::kInvalidFlowHandle) {
18
}
19
20
FlowExportInfo::FlowExportInfo
(
const
FlowEntryPtr
&fe, uint64_t setup_time) :
21
flow_(fe),
22
teardown_time_(0), last_modified_time_(setup_time),
23
bytes_(0), packets_(0),
24
delete_enqueue_time_(0), evict_enqueue_time_(0),
25
gen_id_(0),
26
flow_handle_(
FlowEntry
::kInvalidFlowHandle) {
27
}
28
29
FlowEntry
*
FlowExportInfo::reverse_flow
()
const
{
30
FlowEntry
*rflow = NULL;
31
if
(
flow_
.get()) {
32
rflow =
flow_
->reverse_flow_entry();
33
}
34
return
rflow;
35
}
36
37
void
FlowExportInfo::CopyFlowInfo
(
FlowEntry
*fe) {
38
gen_id_
= fe->
gen_id
();
39
flow_handle_
= fe->
flow_handle
();
40
uuid_
= fe->
uuid
();
41
}
42
43
void
FlowExportInfo::ResetStats
() {
44
bytes_
=
packets_
= 0;
45
}
FlowExportInfo::ResetStats
void ResetStats()
Definition:
flow_export_info.cc:43
flow_table.h
FlowExportInfo::CopyFlowInfo
void CopyFlowInfo(FlowEntry *fe)
Definition:
flow_export_info.cc:37
FlowExportInfo::bytes_
uint64_t bytes_
Definition:
flow_export_info.h:46
FlowExportInfo::packets_
uint64_t packets_
Definition:
flow_export_info.h:47
FlowEntry
Definition:
flow_entry.h:460
FlowExportInfo::flow_handle_
uint32_t flow_handle_
Definition:
flow_export_info.h:51
FlowEntry::uuid
const boost::uuids::uuid & uuid() const
Definition:
flow_entry.h:631
FlowExportInfo::gen_id_
uint8_t gen_id_
Definition:
flow_export_info.h:50
FlowExportInfo::flow_
FlowEntryPtr flow_
Definition:
flow_export_info.h:43
FlowExportInfo::FlowExportInfo
FlowExportInfo()
Definition:
flow_export_info.cc:4
FlowExportInfo::uuid_
boost::uuids::uuid uuid_
Definition:
flow_export_info.h:52
FlowEntry::flow_handle
uint32_t flow_handle() const
Definition:
flow_entry.h:600
FlowEntry::gen_id
uint8_t gen_id() const
Definition:
flow_entry.h:599
flow_stats_collector.h
FlowExportInfo::reverse_flow
FlowEntry * reverse_flow() const
Definition:
flow_export_info.cc:29
FlowEntryPtr
boost::intrusive_ptr< FlowEntry > FlowEntryPtr
Definition:
flow_entry.h:125
contrail
controller
src
vnsw
agent
vrouter
flow_stats
flow_export_info.cc
Generated by
1.8.5