diff options
author | Ido Barnea <ibarnea@cisco.com> | 2016-03-24 16:28:31 +0200 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2016-03-27 17:18:30 +0300 |
commit | 4099c61aa62c699abbb2769472862d088381db85 (patch) | |
tree | 6cfd428293f9b5443b5f1e7ff82702df2ff5db69 /src/flow_stat.h | |
parent | 3804a5dd52975a9a6fd3ff094ae16593bfeb2303 (diff) |
Added flow parser for 82599 10G card. Added exceptions for flow stat
errors
Diffstat (limited to 'src/flow_stat.h')
-rw-r--r-- | src/flow_stat.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/flow_stat.h b/src/flow_stat.h index 83f076de..ea33062d 100644 --- a/src/flow_stat.h +++ b/src/flow_stat.h @@ -104,7 +104,7 @@ typedef class tx_per_flow_t_ tx_per_flow_t; typedef class tx_per_flow_t_ rx_per_flow_t; class CPhyEthIF; -class Cxl710Parser; +class CFlowStatParser; class CFlowStatUserIdInfo { public: @@ -198,6 +198,7 @@ class CFlowStatRuleMgr { }; CFlowStatRuleMgr(); + ~CFlowStatRuleMgr(); friend std::ostream& operator<<(std::ostream& os, const CFlowStatRuleMgr& cf); int add_stream(const TrexStream * stream); int del_stream(const TrexStream * stream); @@ -207,7 +208,8 @@ class CFlowStatRuleMgr { bool dump_json(std::string & json, bool baseline); private: - int compile_stream(const TrexStream * stream, Cxl710Parser &parser); + void create(); + int compile_stream(const TrexStream * stream, CFlowStatParser *parser); int add_hw_rule(uint16_t hw_id, uint8_t proto); void send_start_stop_msg_to_rx(bool is_start); @@ -219,6 +221,8 @@ class CFlowStatRuleMgr { int m_max_hw_id; // max hw id we ever used uint32_t 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; + uint16_t m_capabilities; }; #endif |