RE: [PATCH v3 1/2] latencystats: fix receive sample MP issues

2025-06-26 Thread Varghese, Vipin
[AMD Official Use Only - AMD Internal Distribution Only] Hi Stephen > -Original Message- > From: Stephen Hemminger > Sent: Thursday, June 26, 2025 8:31 PM > To: Varghese, Vipin > Cc: dev@dpdk.org; David Marchand ; > sta...@dpdk.org > Subject: Re: [PATCH v3 1

RE: [PATCH v3 1/2] latencystats: fix receive sample MP issues

2025-06-25 Thread Varghese, Vipin
[AMD Official Use Only - AMD Internal Distribution Only] Hi David & Stephen, > -Original Message- > From: Stephen Hemminger > Sent: Tuesday, June 17, 2025 8:30 PM > To: dev@dpdk.org > Cc: Stephen Hemminger ; sta...@dpdk.org > Subject: [PATCH v3 1/2] latencystats:

[PATCH v3 1/2] latencystats: fix receive sample MP issues

2025-06-17 Thread Stephen Hemminger
The receive callback was not safe with multiple queues. If one receive queue callback decides to take a sample it needs to add that sample and do atomic update to the previous TSC sample value. Add a new lock for that. Optimize the check for when to take sample so that it only needs to lock when l