Query Regarding Race Condition Between Packet Reception and Device Stop in DPDK

NAGENDRA BALAGANI nagendra.balagani at oracle.com
Fri Feb 14 09:43:07 CET 2025


Hi Team,

We are facing a race condition in our DPDK application where one thread is reading packets from queue using rte_eth_rx_burst() , while another thread is attempting to stop the device using rte_eth_dev_stop(). This is causing instability, as the reading thread may still be accessing queues while the device is being stopped.

Could you please suggest the best way to mitigate this race condition without impacting fast path performance? We want to ensure safe synchronization while maintaining high throughput.

Looking forward to your insights.

Regards,
Nagendra

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/users/attachments/20250214/b27bc1d1/attachment-0001.htm>


More information about the users mailing list