summaryrefslogtreecommitdiffstats
path: root/src/main_dpdk.h
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-08-10 17:45:36 +0300
committerimarom <imarom@cisco.com>2016-08-15 16:03:59 +0300
commitba7b5dff853a3b11b0cc2e7b29cfc1cd99e606f7 (patch)
tree25a2d72756217ef5d364a4c9b5a6e5e9a9d165a7 /src/main_dpdk.h
parentce1de344579505665b88c2d548ca8d2acc135988 (diff)
core mask - first phase
Diffstat (limited to 'src/main_dpdk.h')
-rw-r--r--src/main_dpdk.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/main_dpdk.h b/src/main_dpdk.h
index f8c35732..91618071 100644
--- a/src/main_dpdk.h
+++ b/src/main_dpdk.h
@@ -55,13 +55,7 @@ class CPhyEthIF {
m_port_id=0;
m_rx_queue=0;
}
- bool Create(uint8_t portid){
- m_port_id = portid;
- m_last_rx_rate = 0.0;
- m_last_tx_rate = 0.0;
- m_last_tx_pps = 0.0;
- return (true);
- }
+ bool Create(uint8_t portid);
void Delete();
void set_rx_queue(uint8_t rx_queue){
@@ -156,6 +150,9 @@ class CPhyEthIF {
return m_port_id;
}
int get_rx_stat_capabilities();
+
+ const std::vector<std::pair<uint8_t, uint8_t>> & get_core_list();
+
private:
uint8_t m_port_id;
uint8_t m_rx_queue;
@@ -171,6 +168,10 @@ class CPhyEthIF {
float m_last_rx_rate;
float m_last_tx_pps;
float m_last_rx_pps;
+
+ /* holds the core ID list for this port - (core, dir) list*/
+ std::vector<std::pair<uint8_t, uint8_t>> m_core_id_list;
+
public:
struct rte_eth_dev_info m_dev_info;
};