[dpdk-dev] [RFC] ring: count and empty optimizations

2020-04-28 Thread Morten Brørup
Olivier (maintainer of the Ring), I would like to suggest a couple of minor optimizations to the ring library. 1. Testing if the ring is empty is as simple as comparing the producer and consumer pointers: static inline int rte_ring_empty(const struct rte_ring *r) { - return rte_ring_coun

Re: [dpdk-dev] [RFC] ring: count and empty optimizations

2020-04-29 Thread Olivier Matz
Hi Morten, On Tue, Apr 28, 2020 at 03:53:15PM +0200, Morten Brørup wrote: > Olivier (maintainer of the Ring), I'm not anymore, CC'ing Konstantin and Honnappa. > I would like to suggest a couple of minor optimizations to the ring library. > > > 1. Testing if the ring is empty is as simple as co

Re: [dpdk-dev] [RFC] ring: count and empty optimizations

2020-04-29 Thread Honnappa Nagarahalli
> > Hi Morten, > > On Tue, Apr 28, 2020 at 03:53:15PM +0200, Morten Brørup wrote: > > Olivier (maintainer of the Ring), > > I'm not anymore, CC'ing Konstantin and Honnappa. > > > I would like to suggest a couple of minor optimizations to the ring library. > > > > > > 1. Testing if the ring is

Re: [dpdk-dev] [RFC] ring: count and empty optimizations

2020-04-30 Thread Morten Brørup
> From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@arm.com] > Sent: Thursday, April 30, 2020 3:12 AM > > > > > > > Hi Morten, > > > > On Tue, Apr 28, 2020 at 03:53:15PM +0200, Morten Brørup wrote: > > > Olivier (maintainer of the Ring), > > > > I'm not anymore, CC'ing Konstantin and Honna

Re: [dpdk-dev] [RFC] ring: count and empty optimizations

2020-04-30 Thread Ananyev, Konstantin
> > > From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@arm.com] > > Sent: Thursday, April 30, 2020 3:12 AM > > > > > > > > > > > > Hi Morten, > > > > > > On Tue, Apr 28, 2020 at 03:53:15PM +0200, Morten Brørup wrote: > > > > Olivier (maintainer of the Ring), > > > > > > I'm not anymore, CC

Re: [dpdk-dev] [RFC] ring: count and empty optimizations

2020-04-30 Thread Honnappa Nagarahalli
> > > > > > > > > > > > > > Hi Morten, > > > > > > > > On Tue, Apr 28, 2020 at 03:53:15PM +0200, Morten Brørup wrote: > > > > > Olivier (maintainer of the Ring), > > > > > > > > I'm not anymore, CC'ing Konstantin and Honnappa. > > > > > > > > > I would like to suggest a couple of minor optimizatio