We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6108ab commit 54d599dCopy full SHA for 54d599d
src/plugins/input/dpdk/src/dpdkDevice.cpp
@@ -168,7 +168,9 @@ void DpdkDevice::initMemPools(uint16_t memPoolSize)
168
{
169
constexpr int MEMPOOL_CACHE_SIZE = 256;
170
constexpr int VLAN_HDR_LEN = 4;
171
- const int max_packet_size = m_mtuSize + RTE_ETHER_HDR_LEN + VLAN_HDR_LEN;
+ constexpr int DPDK_MBUF_ALIGN = 1024;
172
+ const int max_packet_size
173
+ = RTE_ALIGN_CEIL(m_mtuSize + RTE_ETHER_HDR_LEN + VLAN_HDR_LEN, DPDK_MBUF_ALIGN);
174
175
m_memPools.reserve(m_rxQueueCount);
176
0 commit comments