diff options
author | Ido Barnea <ibarnea@cisco.com> | 2017-03-06 12:37:10 +0200 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2017-03-08 14:21:33 +0200 |
commit | 8808908007c3d9058aced34919935a9bafc0b072 (patch) | |
tree | ea2aa93c3ebe9fea158e293882ec94ad8477c213 /src/main_dpdk.h | |
parent | f2818b3466937a91e5f5ff696a047dab59d85baa (diff) |
Got rid of get_vm_one_queue(). Separated its uses to many small attributes. - second try
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); |