summaryrefslogtreecommitdiffstats
path: root/src/main_dpdk.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/main_dpdk.h')
-rw-r--r--src/main_dpdk.h15
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);