Skip to content

Commit 4e5681b

Browse files
authored
Merge pull request #203 from CESNET/dpdk-device-mempool
dpdk - update memory pool creation to use device socket ID
2 parents 9f53841 + 85e78b4 commit 4e5681b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

input/dpdk/dpdkDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ void DpdkDevice::initMemPools(uint16_t memPoolSize)
173173
MEMPOOL_CACHE_SIZE,
174174
0,
175175
RTE_MBUF_DEFAULT_BUF_SIZE,
176-
rte_lcore_to_socket_id(rxQueueID));
176+
rte_eth_dev_socket_id(m_portID));
177177
if (!memPool) {
178178
throw PluginError(
179179
"DpdkDevice::initMemPool() has failed. Failed to create packets memory pool for "

0 commit comments

Comments
 (0)