Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dpdk rx queue size fix #230

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion input/dpdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace ipxp {
class DpdkOptParser : public OptionsParser {
private:
static constexpr size_t DEFAULT_MBUF_BURST_SIZE = 64;
static constexpr size_t DEFAULT_MBUF_POOL_SIZE = 16384;
static constexpr size_t DEFAULT_MBUF_POOL_SIZE = 4096;
size_t pkt_buffer_size_;
size_t pkt_mempool_size_;
std::vector<uint16_t> port_numbers_;
Expand Down
6 changes: 3 additions & 3 deletions input/dpdk/dpdkDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ DpdkDevice::DpdkDevice(
recognizeDriver();
configurePort();
initMemPools(memPoolSize);
setupRxQueues();
setupRxQueues(memPoolSize);
configureRSS();
enablePort();
}
Expand Down Expand Up @@ -194,13 +194,13 @@ void DpdkDevice::initMemPools(uint16_t memPoolSize)
}
}

void DpdkDevice::setupRxQueues()
void DpdkDevice::setupRxQueues(uint16_t memPoolSize)
{
for (uint16_t rxQueueID = 0; rxQueueID < m_rxQueueCount; rxQueueID++) {
int ret = rte_eth_rx_queue_setup(
m_portID,
rxQueueID,
m_mBufsCount,
memPoolSize,
rte_eth_dev_socket_id(m_portID),
nullptr,
m_memPools[rxQueueID]);
Expand Down
2 changes: 1 addition & 1 deletion input/dpdk/dpdkDevice.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class DpdkDevice {
void configurePort();
rte_eth_conf createPortConfig();
void initMemPools(uint16_t memPoolSize);
void setupRxQueues();
void setupRxQueues(uint16_t memPoolSize);
void configureRSS();
void enablePort();
void createRteMempool(uint16_t mempoolSize);
Expand Down
Loading