diff options
author | Ido Barnea <ibarnea@cisco.com> | 2017-03-06 12:37:10 +0200 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2017-03-07 13:51:27 +0200 |
commit | cebf5a44b5f28a03b245e43013cc27671a980206 (patch) | |
tree | 59f80d43993b5bbc4d1d522f35bd945799895214 /src/main_dpdk.h | |
parent | c5f368b517964f52b30c0c5279aeb0778bf9faeb (diff) |
Got rid of get_vm_one_queue(). Separated its uses to many small attributes.
Signed-off-by: Ido Barnea <ibarnea@cisco.com>
Diffstat (limited to 'src/main_dpdk.h')
-rw-r--r-- | src/main_dpdk.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/main_dpdk.h b/src/main_dpdk.h index 25b19471..e444ad2b 100644 --- a/src/main_dpdk.h +++ b/src/main_dpdk.h @@ -1,5 +1,5 @@ /* - Copyright (c) 2015-2016 Cisco Systems, Inc. + Copyright (c) 2015-2017 Cisco Systems, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -22,10 +22,19 @@ #include "bp_sim.h" enum { - MAIN_DPDK_DATA_Q = 0, + MAIN_DPDK_DROP_Q = 0, MAIN_DPDK_RX_Q = 1, }; +class CTrexDpdkParams { + public: + uint16_t rx_data_q_num; + uint16_t rx_drop_q_num; + uint16_t rx_desc_num_data_q; + uint16_t rx_desc_num_drop_q; + uint16_t tx_desc_num; +}; + // These are statistics for packets we send, and do not expect to get back (Like ARP) // We reduce them from general statistics we report (and report them separately, so we can keep the assumption // that tx_pkts == rx_pkts and tx_bytes==rx_bytes @@ -83,7 +92,7 @@ class CPhyEthIF { void set_rx_queue(uint8_t rx_queue){ m_rx_queue=rx_queue; } - + void conf_queues(); void configure(uint16_t nb_rx_queue, uint16_t nb_tx_queue, const struct rte_eth_conf *eth_conf); |