From 4099c61aa62c699abbb2769472862d088381db85 Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Thu, 24 Mar 2016 16:28:31 +0200 Subject: Added flow parser for 82599 10G card. Added exceptions for flow stat errors --- src/internal_api/trex_platform_api.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/internal_api') diff --git a/src/internal_api/trex_platform_api.h b/src/internal_api/trex_platform_api.h index dbca5a8a..90eaa7c7 100644 --- a/src/internal_api/trex_platform_api.h +++ b/src/internal_api/trex_platform_api.h @@ -26,6 +26,7 @@ limitations under the License. #include #include #include +#include "flow_stat_parser.h" #include "trex_defs.h" /** @@ -34,6 +35,7 @@ limitations under the License. * @author imarom (06-Oct-15) */ + class TrexPlatformGlobalStats { public: TrexPlatformGlobalStats() { @@ -151,6 +153,7 @@ public: virtual bool get_promiscuous(uint8_t port_id) const = 0; virtual void flush_dp_messages() const = 0; virtual int get_active_pgids(flow_stat_active_t &result) const = 0; + virtual CFlowStatParser *get_flow_stat_parser() const = 0; virtual ~TrexPlatformApi() {} }; @@ -180,6 +183,7 @@ public: bool get_promiscuous(uint8_t port_id) const; void flush_dp_messages() const; int get_active_pgids(flow_stat_active_t &result) const; + CFlowStatParser *get_flow_stat_parser() const; }; @@ -241,6 +245,7 @@ public: void flush_dp_messages() const { } int get_active_pgids(flow_stat_active_t &result) const {return 0;} + CFlowStatParser *get_flow_stat_parser() const {return new CFlowStatParser();} private: int m_dp_core_count; -- cgit 1.2.3-korg