LCOV - code coverage report
Current view: top level - vnsw/agent/vrouter/flow_stats - flow_export_info.cc (source / functions) Hit Total Coverage
Test: OpenSDN C/C++ coverage (all TARGET_SET jobs) Lines: 28 35 80.0 %
Date: 2026-11-09 02:10:49 Functions: 5 6 83.3 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #include <vrouter/flow_stats/flow_stats_collector.h>
       2             : #include <pkt/flow_table.h>
       3             : 
       4           0 : FlowExportInfo::FlowExportInfo() :
       5           0 :     flow_(), teardown_time_(0), last_modified_time_(0),
       6           0 :     bytes_(0), packets_(0),
       7           0 :     delete_enqueue_time_(0), evict_enqueue_time_(0),
       8           0 :     gen_id_(0),
       9           0 :     flow_handle_(FlowEntry::kInvalidFlowHandle) {
      10           0 : }
      11             : 
      12         144 : FlowExportInfo::FlowExportInfo(const FlowEntryPtr &fe) :
      13         144 :     flow_(fe), teardown_time_(0), last_modified_time_(0),
      14         144 :     bytes_(0), packets_(0),
      15         144 :     delete_enqueue_time_(0), evict_enqueue_time_(0),
      16         144 :     gen_id_(0),
      17         144 :     flow_handle_(FlowEntry::kInvalidFlowHandle) {
      18         144 : }
      19             : 
      20         230 : FlowExportInfo::FlowExportInfo(const FlowEntryPtr &fe, uint64_t setup_time) :
      21         230 :     flow_(fe),
      22         230 :     teardown_time_(0), last_modified_time_(setup_time),
      23         230 :     bytes_(0), packets_(0),
      24         230 :     delete_enqueue_time_(0), evict_enqueue_time_(0),
      25         230 :     gen_id_(0),
      26         230 :     flow_handle_(FlowEntry::kInvalidFlowHandle) {
      27         230 : }
      28             : 
      29         444 : FlowEntry* FlowExportInfo::reverse_flow() const {
      30         444 :     FlowEntry *rflow = NULL;
      31         444 :     if (flow_.get()) {
      32         444 :         rflow = flow_->reverse_flow_entry();
      33             :     }
      34         444 :     return rflow;
      35             : }
      36             : 
      37         316 : void FlowExportInfo::CopyFlowInfo(FlowEntry *fe) {
      38         316 :     gen_id_ = fe->gen_id();
      39         316 :     flow_handle_ = fe->flow_handle();
      40         316 :     uuid_ = fe->uuid();
      41         316 : }
      42             : 
      43           8 : void FlowExportInfo::ResetStats() {
      44           8 :     bytes_ = packets_ = 0;
      45           8 : }

Generated by: LCOV version 1.14