From fa6068394a80766175b59a2b38b4881ec70e7760 Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Mon, 27 Mar 2017 15:37:21 +0300 Subject: Supporting more flows in stateless flow stats, according to NIC type, and running mode Signed-off-by: Ido Barnea --- src/internal_api/trex_platform_api.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/internal_api') diff --git a/src/internal_api/trex_platform_api.h b/src/internal_api/trex_platform_api.h index 16752652..6cb68690 100644 --- a/src/internal_api/trex_platform_api.h +++ b/src/internal_api/trex_platform_api.h @@ -133,7 +133,8 @@ public: virtual void publish_async_data_now(uint32_t key, bool baseline) const = 0; virtual void publish_async_port_attr_changed(uint8_t port_id) const = 0; virtual uint8_t get_dp_core_count() const = 0; - virtual void get_interface_stat_info(uint8_t interface_id, uint16_t &num_counters, uint16_t &capabilities) const =0; + virtual void get_interface_stat_info(uint8_t interface_id, uint16_t &num_counters, uint16_t &capabilities + , uint16_t &ip_id_base) const =0; virtual int get_flow_stats(uint8_t port_id, void *stats, void *tx_stats, int min, int max, bool reset , TrexPlatformApi::driver_stat_cap_e type) const = 0; virtual int get_rfc2544_info(void *rfc2544_info, int min, int max, bool reset) const = 0; @@ -174,7 +175,8 @@ public: void publish_async_data_now(uint32_t key, bool baseline) const; void publish_async_port_attr_changed(uint8_t port_id) const; uint8_t get_dp_core_count() const; - void get_interface_stat_info(uint8_t interface_id, uint16_t &num_counters, uint16_t &capabilities) const; + void get_interface_stat_info(uint8_t interface_id, uint16_t &num_counters, uint16_t &capabilities + , uint16_t &ip_id_base) const; int get_flow_stats(uint8_t port_id, void *stats, void *tx_stats, int min, int max, bool reset , TrexPlatformApi::driver_stat_cap_e type) const; int get_rfc2544_info(void *rfc2544_info, int min, int max, bool reset) const; @@ -232,7 +234,8 @@ public: virtual void get_interface_stats(uint8_t interface_id, TrexPlatformInterfaceStats &stats) const { } - virtual void get_interface_stat_info(uint8_t interface_id, uint16_t &num_counters, uint16_t &capabilities) const {num_counters=128; capabilities=TrexPlatformApi::IF_STAT_IPV4_ID | TrexPlatformApi::IF_STAT_PAYLOAD; } + virtual void get_interface_stat_info(uint8_t interface_id, uint16_t &num_counters, uint16_t &capabilities + , uint16_t &ip_id_base) const {num_counters=128; capabilities=TrexPlatformApi::IF_STAT_IPV4_ID | TrexPlatformApi::IF_STAT_PAYLOAD; ip_id_base = 0xff00;} virtual void port_id_to_cores(uint8_t port_id, std::vector> &cores_id_list) const { for (int i = 0; i < m_dp_core_count; i++) { -- cgit 1.2.3-korg