DPDK usage discussions
 help / color / mirror / Atom feed
* Multiprocess App Problems with tx_burst
@ 2024-12-31 17:49 Alan Beadle
  2025-01-04 16:22 ` Alan Beadle
  0 siblings, 1 reply; 10+ messages in thread
From: Alan Beadle @ 2024-12-31 17:49 UTC (permalink / raw)
  To: users

Hi everyone,

I am working on a multi-process DPDK application. It uses one NIC, one
port, and both separate processes send as well as receive, and they
share memory for synchronization and IPC.

I had previously made a mistake in setting up the lcores, and all of
the processes were assigned to the same physical core. This seems to
have concealed some DPDK thread safety issues which I am now dealing
with.

I understand that rte_eth_tx_burst() and rte_eth_rx_burst() are not
thread safe. Previously I did not have any synchronization around
these functions. Now that I am successfully using separate cores, I
have added a shared spinlock around all invocations of these
functions, as well as around all mbuf frees and allocations.

However, when my code sends a packet, it checks the return value of
rte_eth_tx_burst() to ensure that the packet was actually sent. If it
fails to send, my app exits with an error. This was not previously
happening, but now it happens every time I run it. I thought this was
due to the lack of synchronization but it is still happening after I
added the lock. Why would rte_eth_tx_burst() be failing now?

Thank you,
-Alan

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-01-07 16:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-31 17:49 Multiprocess App Problems with tx_burst Alan Beadle
2025-01-04 16:22 ` Alan Beadle
2025-01-04 18:40   ` Dmitry Kozlyuk
2025-01-04 19:16     ` Alan Beadle
2025-01-04 22:01       ` Dmitry Kozlyuk
2025-01-05 16:01         ` Alan Beadle
2025-01-06 16:05           ` Alan Beadle
2025-01-06 20:10             ` Dmitry Kozlyuk
2025-01-06 20:34               ` Alan Beadle
2025-01-07 16:09                 ` Alan Beadle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).