diff options
author | imarom <imarom@cisco.com> | 2016-02-28 14:32:57 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-02-28 14:33:26 +0200 |
commit | 21fe2befe8806ac2a70cfb1d1c45737bee7e2702 (patch) | |
tree | 4a774d3a156f3418ea22a2ad88602056eb77fab6 /src/stateless/cp/trex_stateless_port.h | |
parent | b83eb43c25f0452c152d31966da4b1af5c304a6b (diff) |
more info for ports (API and TUI)
Diffstat (limited to 'src/stateless/cp/trex_stateless_port.h')
-rw-r--r-- | src/stateless/cp/trex_stateless_port.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/stateless/cp/trex_stateless_port.h b/src/stateless/cp/trex_stateless_port.h index 0d626375..192d0d19 100644 --- a/src/stateless/cp/trex_stateless_port.h +++ b/src/stateless/cp/trex_stateless_port.h @@ -304,7 +304,7 @@ public: * @return bool */ bool has_crc_added() const { - return m_has_crc; + return m_api_info.has_crc; } TrexPortOwner & get_owner() { @@ -331,7 +331,12 @@ public: */ void set_promiscuous(bool enabled); bool get_promiscuous(); - std::string get_macaddr(); + + void get_macaddr(std::string &hw_macaddr, + std::string &src_macaddr, + std::string &dst_macaddr); + + void get_pci_info(std::string &pci_addr, int &numa_node); private: @@ -396,13 +401,12 @@ private: TrexStreamTable m_stream_table; uint8_t m_port_id; port_state_e m_port_state; - std::string m_driver_name; - bool m_has_crc; + + TrexPlatformApi::intf_info_st m_api_info; + uint16_t m_rx_count_num; uint16_t m_rx_caps; - TrexPlatformApi::driver_speed_e m_speed; - /* holds the DP cores associated with this port */ std::vector<int> m_cores_id_list; |