Hi Stephen, please refer to https://bitbucket.org/chakkadotlokesh/learning_dpdk/src/main/pmd_tx_rx.c at line number 39, ref count of all the mbufs are 2 after rte_eth_tx_burst, pkts_sent packets ref count is supposed to be 1 and rest all should be 2. hence I'm updating by 1. But the observation is that ref count is growing even beyond 100 for many packets.(line number 47) Because ref count is huge, memory is still not released( after line 255, 256). Hence rte_eth_dev_stop is crashing. Could you please help me understand how to handle this situation. Thanks & Regards -- Lokesh Chakka. On Tue, Feb 18, 2025 at 9:48 AM Lokesh Chakka wrote: > hi, > > I've done the build with "meson setup build --buildtype=debug". > I'm seeing a lot function names if I do "file build/lib/librte_eal.so" > version I'm working on is dpdk-stable-24.11.1 > > Inside, the code I've set rte_log_set_global_level(RTE_LOG_DEBUG); > while compiling the code, I've included "-lrte_eal -lrte_log -lrte_mbuf > -lrte_ethdev -lrte_me mpool -mssse3" libraries. > Still I'm seeing only generic EAL Logs. > > while executing, I'am using the command "sudo pmd_tx_rx -l 0-3 -n 4 > --log-level=8" > > still I'am always seeing only the following lines : > > ========================================================== > EAL: Detected CPU lcores: 16 > EAL: Detected NUMA nodes: 1 > EAL: Detected shared linkage of DPDK > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > EAL: Selected IOVA mode 'VA' > EAL: VFIO support initialized > EAL: Using IOMMU type 1 (Type 1) > ICE_INIT: ice_load_pkg_type(): Active package is: 1.3.39.1, ICE OS Default > Package (single VLAN mode) > ICE_INIT: ice_load_pkg_type(): Active package is: 1.3.39.1, ICE OS Default > Package (single VLAN mode) > tx_all_threads_function 188 pkt size: 1500 > ICE_DRIVER: ice_set_rx_function(): Using AVX2 Vector Rx (port 0). > ========================================================== > > could you please let me know if any more debug flags to be provided.... > > > Thanks & Regards > -- > Lokesh Chakka. > > > On Mon, Feb 17, 2025 at 9:28 PM Stephen Hemminger < > stephen@networkplumber.org> wrote: > >> On Mon, 17 Feb 2025 18:36:07 +0530 >> Lokesh Chakka wrote: >> >> > Hello, >> > >> > I've written a few pieces of code for sending and receiving packets. >> > Here is the link for the same. >> > >> > If I try running only pmd_tx.c or only pmd_rx.c, I'm not seeing any >> crashes. >> > But if the same code is copied into dpdk_tx_rx.c, I'm seeing a >> consistent >> > crash. >> > >> > Can someone help me understand what I'm doing wrong? >> > >> > >> > Thanks & Regards >> > -- >> > Lokesh Chakka. >> >> This is all your own code, so it is up to you to debug it. >> Did you try running in debugger (gdb) and/or enabling some of the debug >> flags in the DPDK build. The debug flags will cause more of the code paths >> to validate arguments. >> >