I am modifying l2fwd example to inject additional packets. I am successfully allocating mbufs with rte_pktmbuf_alloc, but weird problems started to occur (feels likes concurrency problems).
I enabled DEBUGs in config file and now my application started crashing on: PANIC in rte_mbuf_sanity_check: bad ref cnt 11: [/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7fdea828d3fd]] 10: [/lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a) [0x7fdea8560e9a]] 9: [./recorder(eal_thread_loop+0x175) [0x48c3a5]] 8: [./recorder() [0x411349]] 7: [./recorder() [0x4111ba]] 6: [./recorder(l2fwd_send_burst+0x55) [0x4131a5]] 5: [./recorder() [0x495f39]] 4: [./recorder() [0x4952e0]] 3: [./recorder(rte_mbuf_sanity_check+0xa7) [0x47ef07]] 2: [./recorder(__rte_panic+0xc9) [0x4104ca]] 1: [./recorder(rte_dump_stack+0x23) [0x48e703]] Aborted (core dumped) Maybe I am allocating mbufs from incorrect core? But which core should I use? (Other packets are allocated automatically by PMD) Thanks