diff options
author | 2016-02-24 06:28:10 -0500 | |
---|---|---|
committer | 2016-02-24 06:29:06 -0500 | |
commit | 252b8ab3f41a18af8561cece71cf07bc9872f39f (patch) | |
tree | 60ca5bedb147d54198ca806b5ce6dfe37d5f0f41 /src/internal_api | |
parent | 146525ddd44618bc5664cd632a86ff14be1c3ba9 (diff) |
virtual NICs does not add 4 bytes of CRC
Diffstat (limited to 'src/internal_api')
-rw-r--r-- | src/internal_api/trex_platform_api.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/internal_api/trex_platform_api.h b/src/internal_api/trex_platform_api.h index f8bc10d5..67288b19 100644 --- a/src/internal_api/trex_platform_api.h +++ b/src/internal_api/trex_platform_api.h @@ -109,7 +109,11 @@ public: virtual void port_id_to_cores(uint8_t port_id, std::vector<std::pair<uint8_t, uint8_t>> &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 void get_interface_info(uint8_t interface_id, std::string &driver_name, driver_speed_e &speed) const = 0; + + virtual void get_interface_info(uint8_t interface_id, std::string &driver_name, + driver_speed_e &speed, + bool &has_crc) const = 0; + virtual void publish_async_data_now(uint32_t key) const = 0; virtual uint8_t get_dp_core_count() const = 0; @@ -127,7 +131,12 @@ public: void port_id_to_cores(uint8_t port_id, std::vector<std::pair<uint8_t, uint8_t>> &cores_id_list) const; void get_global_stats(TrexPlatformGlobalStats &stats) const; void get_interface_stats(uint8_t interface_id, TrexPlatformInterfaceStats &stats) const; - void get_interface_info(uint8_t interface_id, std::string &driver_name, driver_speed_e &speed) const; + + void get_interface_info(uint8_t interface_id, + std::string &driver_name, + driver_speed_e &speed, + bool &has_crc) const; + void publish_async_data_now(uint32_t key) const; uint8_t get_dp_core_count() const; @@ -143,9 +152,14 @@ public: void port_id_to_cores(uint8_t port_id, std::vector<std::pair<uint8_t, uint8_t>> &cores_id_list) const; void get_global_stats(TrexPlatformGlobalStats &stats) const; void get_interface_stats(uint8_t interface_id, TrexPlatformInterfaceStats &stats) const; - void get_interface_info(uint8_t interface_id, std::string &driver_name, driver_speed_e &speed) const { + + void get_interface_info(uint8_t interface_id, + std::string &driver_name, + driver_speed_e &speed, + bool &has_crc) const { driver_name = "MOCK"; speed = SPEED_INVALID; + has_crc = false; } void publish_async_data_now(uint32_t key) const {} |