diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-10-28 14:32:05 +0200 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-10-28 14:39:56 +0200 |
commit | 111bd3664b91279883d9f8e2483e436cbdcf3d38 (patch) | |
tree | aabbd949a315e5551903e6febd4c0460216d9636 /src/main_dpdk.h | |
parent | 1016c3d481dc9e2eb9ab03332aff441c03239614 (diff) |
move port_attr from driver class to physical port class + small fixes according to code review
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'src/main_dpdk.h')
-rw-r--r-- | src/main_dpdk.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main_dpdk.h b/src/main_dpdk.h index 640c73e4..6402d106 100644 --- a/src/main_dpdk.h +++ b/src/main_dpdk.h @@ -167,6 +167,7 @@ class CPhyEthIF { int get_rx_stat_capabilities(); const std::vector<std::pair<uint8_t, uint8_t>> & get_core_list(); + TRexPortAttr * get_port_attr() { return m_port_attr; } private: uint8_t m_port_id; @@ -179,6 +180,7 @@ class CPhyEthIF { CPPSMeasure m_pps_rx; CPhyEthIFStats m_stats; CPhyEthIgnoreStats m_ignore_stats; + TRexPortAttr *m_port_attr; float m_last_tx_rate; float m_last_rx_rate; float m_last_tx_pps; |