Skip to content

Commit 25cc9df

Browse files
committed
Merge branch 'master' of https://github.com/CESNET/ipfixprobe into rpm-dpdk
2 parents baeb2e3 + 6bd0a16 commit 25cc9df

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-11-14 ipfixprobe-4.14.0
2+
* dpdk: set mempool size as rx queue size
3+
14
2024-10-17 ipfixprobe-4.13.0
25
* usability: introduce docker/podman container to convert PCAP files to CSV
36
* IPFIX: fix order of TCP options flags

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-11-12 (Jan Sobol): dpdkDevice: use mempool size as rx queue size instead of burst size
2+
2024-11-12 (Jan Sobol): dpdk: reduce value of DEFAULT_MBUF_POOL_SIZE to use it also as rx queue size
3+
14
2024-10-17 (Tomas Cejka): doc: include generated Doxyfile to create documentation
25
2024-10-17 (Tomas Cejka): doc: add doxygen comment for parse_packet()
36
2024-10-16 (Jan Sobol): dpdk-ring - fix checking if any packet has actually been parsed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Process this file with autoconf to produce a configure script.
33

44
AC_PREREQ([2.69])
5-
AC_INIT([ipfixprobe], [4.13.0], [[email protected]])
5+
AC_INIT([ipfixprobe], [4.14.0], [[email protected]])
66

77
AC_CONFIG_SRCDIR([main.cpp])
88
AC_CONFIG_HEADERS([config.h])

input/dpdk.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ namespace ipxp {
4444
class DpdkOptParser : public OptionsParser {
4545
private:
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_;

input/dpdk/dpdkDevice.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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]);

input/dpdk/dpdkDevice.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)