Re: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size

2019-10-23 Thread Honnappa Nagarahalli
> > > > > > I have applied your > > > > suggestion in 6/6 in v6 along with my corrections. The > > > > rte_ring_elem test cases are added in 3/6. I have verified that they are > running fine (they are done for 64b alone, will add more). Hopefully, there > are > no more errors. > > > > Applied v6

Re: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size

2019-10-22 Thread Ananyev, Konstantin
...@microsoft.com' > ; 'jer...@marvell.com' ; > Richardson, Bruce ; > 'david.march...@redhat.com' ; > 'pbhagavat...@marvell.com' ; > 'dev@dpdk.org' ; 'Dharmik Thakkar' ; > 'Ruifeng Wang (Arm Technology China)'

Re: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size

2019-10-22 Thread Ananyev, Konstantin
> > I have applied your > > suggestion in 6/6 in v6 along with my corrections. The rte_ring_elem test > > cases are added in 3/6. I have verified that they are running > > fine (they are done for 64b alone, will add more). Hopefully, there are no > > more errors. Applied v6 and re-run the test

Re: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size

2019-10-21 Thread Ananyev, Konstantin
> > > > fix patch > > === > > > > From a2be5a9b136333a56d466ef042c655e522ca7012 Mon Sep 17 00:00:00 > > 2001 > > From: Konstantin Ananyev > > Date: Fri, 18 Oct 2019 15:50:43 +0100 > > Subject: [PATCH] fix1 > > > > Signed-off-by: Konstantin Ananyev > > --- > > lib/librte_ring/rte_ring_elem.

Re: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size

2019-10-20 Thread Honnappa Nagarahalli
> > Hi everyone, > > > > > > >>> I tried this. On x86 (Xeon(R) Gold 6132 CPU @ 2.60GHz), the > > > > >>> results are as > > > > >> follows. The numbers in brackets are with the code on master. > > > > >>> gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 > > > > >>> > > > > >>> RTE>>ring_perf_elem_autot

Re: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size

2019-10-20 Thread Honnappa Nagarahalli
> > > > > > > Subject: Re: [PATCH v4 1/2] lib/ring: apis to support configurable > > > > element size > > > > > > > > >>> I tried this. On x86 (Xeon(R) Gold 6132 CPU @ 2.60GHz), the > > > > >>> results are as > > > > >> follows. The numbers in brackets are with the code on master. > > > > >>> gcc (

Re: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size

2019-10-18 Thread Honnappa Nagarahalli
> Subject: RE: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable > element size > > > Hi everyone, > > > > > > >>> I tried this. On x86 (Xeon(R) Gold 6132 CPU @ 2.60GHz), the > > > > >>> results are as > >

Re: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size

2019-10-18 Thread David Christensen
Tried this on a Power9 platform (3.6GHz), with two numa nodes and 16 cores/node (SMT=4). Applied all 3 patches in v5, test results are as follows: RTE>>ring_perf_elem_autotest ### Testing single element and burst enq/deq ### SP/SC single enq/dequeue: 42 MP/MC single enq/dequeue: 59 SP/SC burs

Re: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size

2019-10-18 Thread Ananyev, Konstantin
Hi everyone, > > > >>> I tried this. On x86 (Xeon(R) Gold 6132 CPU @ 2.60GHz), the results > > > >>> are as > > > >> follows. The numbers in brackets are with the code on master. > > > >>> gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 > > > >>> > > > >>> RTE>>ring_perf_elem_autotest > > > >>> ### Te

Re: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size

2019-10-18 Thread Jerin Jacob
On Fri, Oct 18, 2019 at 1:34 PM Jerin Jacob wrote: > > On Fri, Oct 18, 2019 at 8:48 AM Honnappa Nagarahalli > wrote: > > > > > > > > > Subject: Re: [PATCH v4 1/2] lib/ring: apis to support configurable element > > > size > > > > > > >>> I tried this. On x86 (Xeon(R) Gold 6132 CPU @ 2.60GHz), the

Re: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size

2019-10-18 Thread Jerin Jacob
On Fri, Oct 18, 2019 at 8:48 AM Honnappa Nagarahalli wrote: > > > > > Subject: Re: [PATCH v4 1/2] lib/ring: apis to support configurable element > > size > > > > >>> I tried this. On x86 (Xeon(R) Gold 6132 CPU @ 2.60GHz), the results > > >>> are as > > >> follows. The numbers in brackets are with

Re: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size

2019-10-17 Thread Honnappa Nagarahalli
> Subject: Re: [PATCH v4 1/2] lib/ring: apis to support configurable element > size > > >>> I tried this. On x86 (Xeon(R) Gold 6132 CPU @ 2.60GHz), the results > >>> are as > >> follows. The numbers in brackets are with the code on master. > >>> gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 > >>> >

Re: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size

2019-10-17 Thread David Christensen
I tried this. On x86 (Xeon(R) Gold 6132 CPU @ 2.60GHz), the results are as follows. The numbers in brackets are with the code on master. gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 RTE>>ring_perf_elem_autotest ### Testing single element and burst enq/deq ### SP/SC single enq/dequeue: 5 MP/MC sing

Re: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size

2019-10-17 Thread Honnappa Nagarahalli
+ David Christensen for Power architecture > > > > > > > It > > > > would mean extra work for the users. > > > > > > > > > 2. A lot of code duplication with these 3 copies of > > > > > ENQUEUE/DEQUEUE macros. > > > > > > > > > > Looking at ENQUEUE/DEQUEUE macros, I can see that main loop > > > >

Re: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size

2019-10-17 Thread Ananyev, Konstantin
> > > > > > Current APIs assume ring elements to be pointers. However, in > > > > > > many use cases, the size can be different. Add new APIs to > > > > > > support configurable ring element sizes. > > > > > > > > > > > > Signed-off-by: Honnappa Nagarahalli > > > > > > > > > > > > Reviewed-by: D

Re: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size

2019-10-16 Thread Honnappa Nagarahalli
> Hi Honnappa, > > > > > > > > > > > Current APIs assume ring elements to be pointers. However, in > > > > > many use cases, the size can be different. Add new APIs to > > > > > support configurable ring element sizes. > > > > > > > > > > Signed-off-by: Honnappa Nagarahalli > > > > > > > > > >

Re: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size

2019-10-15 Thread Ananyev, Konstantin
Hi Honnappa, > > > > > > > > Current APIs assume ring elements to be pointers. However, in many > > > > use cases, the size can be different. Add new APIs to support > > > > configurable ring element sizes. > > > > > > > > Signed-off-by: Honnappa Nagarahalli > > > > Reviewed-by: Dharmik Thakka

Re: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size

2019-10-14 Thread Honnappa Nagarahalli
Hi Konstantin, Thank you for the feedback. > > > > > > > Current APIs assume ring elements to be pointers. However, in many > > > use cases, the size can be different. Add new APIs to support > > > configurable ring element sizes. > > > > > > Signed-off-by: Honnappa Nagarahalli > > > R

Re: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size

2019-10-14 Thread Ananyev, Konstantin
> > > > Current APIs assume ring elements to be pointers. However, in many use > > cases, > > the size can be different. Add new APIs to support configurable ring element > > sizes. > > > > Signed-off-by: Honnappa Nagarahalli > > Reviewed-by: Dharmik Thakkar > > Reviewed-by: Gavin Hu > > Revi

Re: [dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size

2019-10-11 Thread Honnappa Nagarahalli
Hi Bruce, Konstantin, Stephen, Appreciate if you could provide feedback on this. Thanks, Honnappa > -Original Message- > From: Honnappa Nagarahalli > Sent: Tuesday, October 8, 2019 9:47 PM > To: olivier.m...@6wind.com; sthem...@microsoft.com; jer...@marvell.com; > bruce.richard..

[dpdk-dev] [PATCH v4 1/2] lib/ring: apis to support configurable element size

2019-10-08 Thread Honnappa Nagarahalli
Current APIs assume ring elements to be pointers. However, in many use cases, the size can be different. Add new APIs to support configurable ring element sizes. Signed-off-by: Honnappa Nagarahalli Reviewed-by: Dharmik Thakkar Reviewed-by: Gavin Hu Reviewed-by: Ruifeng Wang --- lib/librte_rin