> -----Original Message-----
> From: Stephen Hemminger <[email protected]>
> Sent: Friday, December 6, 2019 4:31 PM
> To: Van Haaren, Harry <[email protected]>
> Cc: Tom Barbette <[email protected]>; Perugu Hemasai Chandra Prasad
> <[email protected]>; [email protected]; [email protected]
> Subject: Re: [dpdk-users] [dpdk-dev] Sharing Data structure between logical
> cores in DPDK- regarding

Hey Stephen,

[OT] Please watch your snipping of > characters and Wrote: strings, I'm not the 
original author of the question, but from snipping it looks like that below.


> On Thu, 5 Dec 2019 10:54:59 +0000
> "Van Haaren, Harry" <[email protected]> wrote:
> 
> >          I have a small doubt, can we share a data structure between
> > > multiple logical cores in DPDK without locking?
> 
> Sure, learn to use RCU!!

Good suggestion, apart from Atomics or Mutex based locking schemes, RCU (Read 
Copy Update) is another method of (semi) synchronizing/sharing data-structures 
across threads.

DPDK has some RCU mechanics in lib/librte_rcu/ library, perhaps they are of 
interest. The implementation here is particularly for reclaiming memory after a 
Quiescent State point has been reached by all threads.

Reply via email to