File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ namespace ipxp {
4444class DpdkOptParser : public OptionsParser {
4545private:
4646 static constexpr size_t DEFAULT_MBUF_BURST_SIZE = 64 ;
47- static constexpr size_t DEFAULT_MBUF_POOL_SIZE = 16384 ;
47+ static constexpr size_t DEFAULT_MBUF_POOL_SIZE = 4096 ;
4848 size_t pkt_buffer_size_;
4949 size_t pkt_mempool_size_;
5050 std::vector<uint16_t > port_numbers_;
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ DpdkDevice::DpdkDevice(
5454 recognizeDriver ();
5555 configurePort ();
5656 initMemPools (memPoolSize);
57- setupRxQueues ();
57+ setupRxQueues (memPoolSize );
5858 configureRSS ();
5959 enablePort ();
6060}
@@ -194,13 +194,13 @@ void DpdkDevice::initMemPools(uint16_t memPoolSize)
194194 }
195195}
196196
197- void DpdkDevice::setupRxQueues ()
197+ void DpdkDevice::setupRxQueues (uint16_t memPoolSize )
198198{
199199 for (uint16_t rxQueueID = 0 ; rxQueueID < m_rxQueueCount; rxQueueID++) {
200200 int ret = rte_eth_rx_queue_setup (
201201 m_portID,
202202 rxQueueID,
203- m_mBufsCount ,
203+ memPoolSize ,
204204 rte_eth_dev_socket_id (m_portID),
205205 nullptr ,
206206 m_memPools[rxQueueID]);
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ class DpdkDevice {
7676 void configurePort ();
7777 rte_eth_conf createPortConfig ();
7878 void initMemPools (uint16_t memPoolSize);
79- void setupRxQueues ();
79+ void setupRxQueues (uint16_t memPoolSize );
8080 void configureRSS ();
8181 void enablePort ();
8282 void createRteMempool (uint16_t mempoolSize);
You can’t perform that action at this time.
0 commit comments