mbuf refcnt issue
Stephen Hemminger
stephen at networkplumber.org
Wed Apr 9 05:53:41 CEST 2025
On Tue, 8 Apr 2025 22:33:56 +0000
"Lombardo, Ed" <Ed.Lombardo at netscout.com> wrote:
> Hi Dmitry,
> I added mbuf refcnt check at the point where we get the packets from DPDK rte_eth_rx_burst() and I am finding many mbufs refcnt set to 2 when I expect them to be 1. This is more evidence that something has gone wrong within DPDK and the mempool management, perhaps, and I don't know how my setup went into this state. I changed the traffic type from Telnet to Enterprise traffic and rte_eth_tx_burst() no longer accepts mbufs.
Not likely a DPDK bug. More likely you are having application problems.
Have you tried enabling things like RTE_LIBRTE_MBUF_DEBUG and RTE_LIBRTE_MEMPOOL_DEBUG
and RTE_ENABLE_ASSERT?
Also using a current version of DPDK, address sanitizer, and latest GCC or CLANG
can uncover issues with use after free.
More information about the users
mailing list