diff options
author | imarom <imarom@cisco.com> | 2016-02-24 08:58:54 -0500 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-02-24 08:58:54 -0500 |
commit | 235a14fce2503d2592f9fe58bd8611e97f99f7df (patch) | |
tree | 907e898c9ad12821c3e50add673e178726eb5c40 /src/stateless/cp/trex_stateless_port.h | |
parent | ecb526069c67cc7ee96ee6e7e263f3e556355011 (diff) |
RX - for not supported interfaces gives an error in JSON
Diffstat (limited to 'src/stateless/cp/trex_stateless_port.h')
-rw-r--r-- | src/stateless/cp/trex_stateless_port.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/stateless/cp/trex_stateless_port.h b/src/stateless/cp/trex_stateless_port.h index 434181c4..a956c421 100644 --- a/src/stateless/cp/trex_stateless_port.h +++ b/src/stateless/cp/trex_stateless_port.h @@ -284,6 +284,18 @@ public: uint64_t get_port_speed_bps() const; /** + * return RX caps + * + */ + int get_rx_caps() const { + return m_rx_caps; + } + + uint16_t get_rx_count_num() const { + return m_rx_count_num; + } + + /** * return true if port adds CRC to a packet (not occurs for * VNICs) * @@ -376,6 +388,8 @@ private: port_state_e m_port_state; std::string m_driver_name; bool m_has_crc; + uint16_t m_rx_count_num; + uint16_t m_rx_caps; TrexPlatformApi::driver_speed_e m_speed; |