From 85e78b48e09b48f36780935c4530c6386f4cb562 Mon Sep 17 00:00:00 2001 From: Pavel Siska Date: Wed, 3 Apr 2024 13:20:27 +0200 Subject: [PATCH] dpdk - update memory pool creation to use device socket ID --- input/dpdk/dpdkDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/dpdk/dpdkDevice.cpp b/input/dpdk/dpdkDevice.cpp index 92b85730..ccd2e423 100644 --- a/input/dpdk/dpdkDevice.cpp +++ b/input/dpdk/dpdkDevice.cpp @@ -173,7 +173,7 @@ void DpdkDevice::initMemPools(uint16_t memPoolSize) MEMPOOL_CACHE_SIZE, 0, RTE_MBUF_DEFAULT_BUF_SIZE, - rte_lcore_to_socket_id(rxQueueID)); + rte_eth_dev_socket_id(m_portID)); if (!memPool) { throw PluginError( "DpdkDevice::initMemPool() has failed. Failed to create packets memory pool for "