[dpdk-dev] Use WFE for spinlock and ring

2021-04-24 Thread Ruifeng Wang
The rte_wait_until_equal_xxx APIs abstract the functionality of 'polling for a memory location to become equal to a given value'[1]. Use the API for the rte spinlock and ring implementations. With the wait until equal APIs being stable, changes will not impact ABI. [1] http://patches.dpdk.org/cov

Re: [dpdk-dev] Use WFE for spinlock and ring

2021-07-05 Thread David Marchand
On Fri, May 7, 2021 at 12:24 PM Bruce Richardson wrote: > > > > The problem is inconsistency in performance on different Arm platforms. > > > We had decided that each platform needs to enable it after some testing. > > > > > > Then it sounds like it does indeed need to be a build option. Does it

Re: [dpdk-dev] Use WFE for spinlock and ring

2021-07-05 Thread Ruifeng Wang
> -Original Message- > From: David Marchand > Sent: Monday, July 5, 2021 4:52 PM > To: Ruifeng Wang > Cc: Bruce Richardson ; Honnappa Nagarahalli > ; tho...@monjalon.net; dev > ; jer...@marvell.com; nd > Subject: Re: Use WFE for spinlock and ring > > On Fri, May 7, 2021 at 12:24 PM Bruc

Re: [dpdk-dev] Use WFE for spinlock and ring

2021-07-07 Thread Stephen Hemminger
On Sun, 25 Apr 2021 05:56:51 + Ruifeng Wang wrote: > The rte_wait_until_equal_xxx APIs abstract the functionality of 'polling > for a memory location to become equal to a given value'[1]. > > Use the API for the rte spinlock and ring implementations. > With the wait until equal APIs being st

Re: [dpdk-dev] Use WFE for spinlock and ring

2021-07-08 Thread Ruifeng Wang
> -Original Message- > From: Stephen Hemminger > Sent: Wednesday, July 7, 2021 10:48 PM > To: Ruifeng Wang > Cc: dev@dpdk.org; david.march...@redhat.com; tho...@monjalon.net; > jer...@marvell.com; nd ; Honnappa Nagarahalli > > Subject: Re: [dpdk-dev] Use W

Re: [dpdk-dev] Use WFE for spinlock and ring

2021-07-08 Thread Honnappa Nagarahalli
> > > > On Sun, 25 Apr 2021 05:56:51 + > > Ruifeng Wang wrote: > > > > > The rte_wait_until_equal_xxx APIs abstract the functionality of > > > 'polling for a memory location to become equal to a given value'[1]. > > > > > > Use the API for the rte spinlock and ring implementations. > > > Wit

Re: [dpdk-dev] Use WFE for spinlock and ring

2021-04-28 Thread David Marchand
Hello Ruifeng, On Sun, Apr 25, 2021 at 7:57 AM Ruifeng Wang wrote: > > The rte_wait_until_equal_xxx APIs abstract the functionality of 'polling > for a memory location to become equal to a given value'[1]. > > Use the API for the rte spinlock and ring implementations. > With the wait until equal

Re: [dpdk-dev] Use WFE for spinlock and ring

2021-04-28 Thread Ruifeng Wang
> -Original Message- > From: David Marchand > Sent: Wednesday, April 28, 2021 3:42 PM > To: Ruifeng Wang > Cc: dev ; tho...@monjalon.net; jer...@marvell.com; nd > ; Honnappa Nagarahalli > Subject: Re: Use WFE for spinlock and ring > > Hello Ruifeng, Hello David, > > On Sun, Apr 25, 20

Re: [dpdk-dev] Use WFE for spinlock and ring

2021-04-28 Thread Thomas Monjalon
28/04/2021 11:30, Ruifeng Wang: > From: David Marchand > > On Sun, Apr 25, 2021 at 7:57 AM Ruifeng Wang > > wrote: > > > > > > The rte_wait_until_equal_xxx APIs abstract the functionality of > > > 'polling for a memory location to become equal to a given value'[1]. > > > > > > Use the API for the

Re: [dpdk-dev] Use WFE for spinlock and ring

2021-04-29 Thread Ruifeng Wang
> -Original Message- > From: Thomas Monjalon > Sent: Wednesday, April 28, 2021 7:14 PM > To: Ruifeng Wang > Cc: David Marchand ; dev ; > jer...@marvell.com; nd ; Honnappa Nagarahalli > > Subject: Re: Use WFE for spinlock and ring > > 28/04/2021 11:30, Ruifeng Wang: > > From: David March

Re: [dpdk-dev] Use WFE for spinlock and ring

2021-04-29 Thread Thomas Monjalon
29/04/2021 16:28, Ruifeng Wang: > From: Thomas Monjalon > > 28/04/2021 11:30, Ruifeng Wang: > > > From: David Marchand > > > > On Sun, Apr 25, 2021 at 7:57 AM Ruifeng Wang > > > > wrote: > > > > > > > > > > The rte_wait_until_equal_xxx APIs abstract the functionality of > > > > > 'polling for a

Re: [dpdk-dev] Use WFE for spinlock and ring

2021-04-30 Thread Bruce Richardson
On Thu, Apr 29, 2021 at 05:20:05PM +0200, Thomas Monjalon wrote: > 29/04/2021 16:28, Ruifeng Wang: > > From: Thomas Monjalon > > > 28/04/2021 11:30, Ruifeng Wang: > > > > From: David Marchand > > > > > On Sun, Apr 25, 2021 at 7:57 AM Ruifeng Wang > > > > > wrote: > > > > > > > > > > > > The rte_

Re: [dpdk-dev] Use WFE for spinlock and ring

2021-04-30 Thread Honnappa Nagarahalli
> > > > > > > > > > > > > > The rte_wait_until_equal_xxx APIs abstract the functionality > > > > > > > of 'polling for a memory location to become equal to a given > value'[1]. > > > > > > > > > > > > > > Use the API for the rte spinlock and ring implementations. > > > > > > > With the wait until

Re: [dpdk-dev] Use WFE for spinlock and ring

2021-04-30 Thread Bruce Richardson
On Fri, Apr 30, 2021 at 01:41:22PM +, Honnappa Nagarahalli wrote: > > > > > > > > > > > > > > > > > > The rte_wait_until_equal_xxx APIs abstract the functionality > > > > > > > > of 'polling for a memory location to become equal to a given > > value'[1]. > > > > > > > > > > > > > > > > Use th

Re: [dpdk-dev] Use WFE for spinlock and ring

2021-05-07 Thread Ruifeng Wang
> -Original Message- > From: Bruce Richardson > Sent: Friday, April 30, 2021 10:19 PM > To: Honnappa Nagarahalli > Cc: tho...@monjalon.net; Ruifeng Wang ; David > Marchand ; dev ; > jer...@marvell.com; nd > Subject: Re: Use WFE for spinlock and ring > > On Fri, Apr 30, 2021 at 01:41:22P

Re: [dpdk-dev] Use WFE for spinlock and ring

2021-05-07 Thread Bruce Richardson
On Fri, May 07, 2021 at 10:18:52AM +, Ruifeng Wang wrote: > > -Original Message- > > From: Bruce Richardson > > Sent: Friday, April 30, 2021 10:19 PM > > To: Honnappa Nagarahalli > > Cc: tho...@monjalon.net; Ruifeng Wang ; David > > Marchand ; dev ; > > jer...@marvell.com; nd > > Sub