diff options
author | Ido Barnea <ibarnea@cisco.com> | 2016-09-08 12:04:59 +0300 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2016-09-13 11:54:20 +0300 |
commit | 58f1ee52761a489322036f111793ddd8e85e197a (patch) | |
tree | 0381145a5b44e685c94a9723f6d75e3cfe924004 /src/flow_stat.h | |
parent | 34a6b9050f9179e8000e54b0b3c07f054322c5a2 (diff) |
APIs and functions in preparation for receive all mode. XL710/i350 mode toggling work.
Diffstat (limited to 'src/flow_stat.h')
-rw-r--r-- | src/flow_stat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/flow_stat.h b/src/flow_stat.h index dee1acc8..e0c995ab 100644 --- a/src/flow_stat.h +++ b/src/flow_stat.h @@ -452,6 +452,11 @@ class CFlowStatRuleMgr { FLOW_STAT_RULE_TYPE_IPV6_FLOW_LABEL, }; + enum flow_stat_mode_e { + FLOW_STAT_MODE_NORMAL, + FLOW_STAT_MODE_PASS_ALL, + }; + CFlowStatRuleMgr(); ~CFlowStatRuleMgr(); friend std::ostream& operator<<(std::ostream& os, const CFlowStatRuleMgr& cf); @@ -463,6 +468,7 @@ class CFlowStatRuleMgr { int start_stream(TrexStream * stream); int stop_stream(TrexStream * stream); int get_active_pgids(flow_stat_active_t &result); + int set_mode(enum flow_stat_mode_e mode); bool dump_json(std::string & s_json, std::string & l_json, bool baseline); private: @@ -484,6 +490,7 @@ class CFlowStatRuleMgr { int m_num_started_streams; // How many started (transmitting) streams we have CNodeRing *m_ring_to_rx; // handle for sending messages to Rx core CFlowStatParser *m_parser; + enum flow_stat_mode_e m_mode; uint16_t m_cap; // capabilities of the NIC driver we are using uint32_t m_rx_cant_count_err[TREX_MAX_PORTS]; uint32_t m_tx_cant_count_err[TREX_MAX_PORTS]; |