From: NAGENDRA BALAGANI <nagendra.balagani@oracle.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: Query Regarding Race Condition Between Packet Reception and Device Stop in DPDK
Date: Fri, 14 Feb 2025 08:43:07 +0000 [thread overview]
Message-ID: <DM6PR10MB4124042136E9F1E9DF05532396FE2@DM6PR10MB4124.namprd10.prod.outlook.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 587 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 2597 bytes --]
next reply other threads:[~2025-02-14 8:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-14 8:43 NAGENDRA BALAGANI [this message]
2025-02-14 9:22 ` Van Haaren, Harry
2025-02-14 16:31 ` Stephen Hemminger
2025-02-17 9:32 ` [External] : " NAGENDRA BALAGANI
2025-02-17 18:57 ` Changchun Zhang
2025-02-17 19:06 ` Stephen Hemminger
2025-02-17 19:14 ` Changchun Zhang
2025-02-17 19:20 ` Changchun Zhang
2025-02-17 20:56 ` Stephen Hemminger
2025-02-18 9:32 ` Van Haaren, Harry
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DM6PR10MB4124042136E9F1E9DF05532396FE2@DM6PR10MB4124.namprd10.prod.outlook.com \
--to=nagendra.balagani@oracle.com \
--cc=users@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).