[dpdk-dev] Bit spinlocks in DPDK

2013-12-20 Thread François-Frédéric Ozog
> -Message d'origine- > De?: Thomas Monjalon [mailto:thomas.monjalon at 6wind.com] > Envoy??: vendredi 20 d?cembre 2013 16:39 > ??: Fran?ois-Fr?d?ric Ozog > Cc?: dev at dpdk.org > Objet?: Re: [dpdk-dev] Bit spinlocks in DPDK > > Hello, > > 07/12

[dpdk-dev] Bit spinlocks in DPDK

2013-12-20 Thread Thomas Monjalon
Hello, 07/12/2013 18:54, Fran?ois-Fr?d?ric Ozog : > 1) If the critical section deals with weakly ordered loads then explicit > fencing MUST be used: if not, out of order execution will just kill your > idea of critical section. [...] > So use rte_mb() or rte_wmb() or rte_rmb() where appropriate. I

[dpdk-dev] Bit spinlocks in DPDK

2013-12-20 Thread Stephen Hemminger
dev at dpdk.org > > Objet?: Re: [dpdk-dev] Bit spinlocks in DPDK > > > > Hello, > > > > 07/12/2013 18:54, Fran?ois-Fr?d?ric Ozog : > > > 1) If the critical section deals with weakly ordered loads then > > > explicit fencing MUST be used: if not, out of o

[dpdk-dev] Bit spinlocks in DPDK

2013-12-19 Thread Thomas Monjalon
07/12/2013 18:54, Fran?ois-Fr?d?ric Ozog : > > De Thomas Monjalon > > 06/12/2013 14:12, Pashupati Kumar : > > > I am looking for spinlocks that use a single bit (bit 31) of a 32 bit > > > word for locking. The rest of the bits in the word are left > > > undisturbed. This enables more compact data

[dpdk-dev] Bit spinlocks in DPDK

2013-12-07 Thread François-Frédéric Ozog
> -Message d'origine- > De?: dev [mailto:dev-bounces at dpdk.org] De la part de Thomas Monjalon > Envoy??: vendredi 6 d?cembre 2013 23:24 > ??: Pashupati Kumar > Cc?: dev at dpdk.org > Objet?: Re: [dpdk-dev] Bit spinlocks in DPDK > > 06/12/2013 14:12, Pashu

[dpdk-dev] Bit spinlocks in DPDK

2013-12-06 Thread Thomas Monjalon
06/12/2013 14:12, Pashupati Kumar : > From: Thomas Monjalon > > 06/12/2013 13:04, Pashupati Kumar : > > > We use bit spinlocks extensively to have compact data structures. Are > > > there any plans for adding them to DPDK in some future release? > > > > Not sure to understand your request. > > Ar

[dpdk-dev] Bit spinlocks in DPDK

2013-12-06 Thread Thomas Monjalon
Hello, 06/12/2013 13:04, Pashupati Kumar : > We use bit spinlocks extensively to have compact data structures. Are there > any plans for adding them to DPDK in some future release? Not sure to understand your request. Are you looking for that? http://dpdk.org/doc/api/rte__spinlock_8h.htm

[dpdk-dev] Bit spinlocks in DPDK

2013-12-06 Thread Pashupati Kumar
> 06/12/2013 14:12, Pashupati Kumar : > > From: Thomas Monjalon > > > 06/12/2013 13:04, Pashupati Kumar : > > > > We use bit spinlocks extensively to have compact data structures. > > > > Are there any plans for adding them to DPDK in some future release? > > > > > > Not sure to understand your req

[dpdk-dev] Bit spinlocks in DPDK

2013-12-06 Thread Pashupati Kumar
[mailto:thomas.monja...@6wind.com] Sent: Friday, December 06, 2013 2:02 PM To: Pashupati Kumar Cc: dev at dpdk.org Subject: Re: [dpdk-dev] Bit spinlocks in DPDK Hello, 06/12/2013 13:04, Pashupati Kumar : > We use bit spinlocks extensively to have compact data structures. Are > there any pla

[dpdk-dev] Bit spinlocks in DPDK

2013-12-06 Thread Pashupati Kumar
Hi, We use bit spinlocks extensively to have compact data structures. Are there any plans for adding them to DPDK in some future release? Thanks Pash