From c0a49eef86df00d9497fa5701d5b9d4cbf4bacc2 Mon Sep 17 00:00:00 2001 From: imarom Date: Tue, 3 Nov 2015 16:29:07 +0200 Subject: now support multiple interfaces / ports --- src/internal_api/trex_platform_api.h | 4 ++++ 1 file changed, 4 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 5c2d42d2..5890a965 100644 --- a/src/internal_api/trex_platform_api.h +++ b/src/internal_api/trex_platform_api.h @@ -23,6 +23,7 @@ limitations under the License. #define __TREX_PLATFORM_API_H__ #include +#include /** * Global stats @@ -96,6 +97,7 @@ public: class TrexPlatformApi { public: + virtual void port_id_to_cores(uint8_t port_id, std::vector> &cores_id_list) const = 0; virtual void get_global_stats(TrexPlatformGlobalStats &stats) const = 0; virtual void get_interface_stats(uint8_t interface_id, TrexPlatformInterfaceStats &stats) const = 0; virtual uint8_t get_dp_core_count() const = 0; @@ -110,6 +112,7 @@ public: */ class TrexDpdkPlatformApi : public TrexPlatformApi { public: + void port_id_to_cores(uint8_t port_id, std::vector> &cores_id_list) const; void get_global_stats(TrexPlatformGlobalStats &stats) const; void get_interface_stats(uint8_t interface_id, TrexPlatformInterfaceStats &stats) const; uint8_t get_dp_core_count() const; @@ -122,6 +125,7 @@ public: */ class TrexMockPlatformApi : public TrexPlatformApi { public: + void port_id_to_cores(uint8_t port_id, std::vector> &cores_id_list) const {} void get_global_stats(TrexPlatformGlobalStats &stats) const; void get_interface_stats(uint8_t interface_id, TrexPlatformInterfaceStats &stats) const; uint8_t get_dp_core_count() const; -- cgit 1.2.3-korg