Re: [dpdk-dev] [RFC 1/1] lib/ring: add scatter gather and serial dequeue APIs

2020-03-25 Thread Honnappa Nagarahalli
> > > > > > > > > > +/** > > > > > > + * @internal Reserve ring elements to enqueue several objects > > > > > > +on the ring > > > > > > + * > > > > > > + * @param r > > > > > > + * A pointer to the ring structure. > > > > > > + * @param esize > > > > > > + * The size of ring element, in byt

Re: [dpdk-dev] [RFC 1/1] lib/ring: add scatter gather and serial dequeue APIs

2020-03-05 Thread Ananyev, Konstantin
> > > > > > > +/** > > > > > + * @internal Reserve ring elements to enqueue several objects on > > > > > +the ring > > > > > + * > > > > > + * @param r > > > > > + * A pointer to the ring structure. > > > > > + * @param esize > > > > > + * The size of ring element, in bytes. It must be a mult

Re: [dpdk-dev] [RFC 1/1] lib/ring: add scatter gather and serial dequeue APIs

2020-03-04 Thread Honnappa Nagarahalli
> > > > > +/** > > > > + * @internal Reserve ring elements to enqueue several objects on > > > > +the ring > > > > + * > > > > + * @param r > > > > + * A pointer to the ring structure. > > > > + * @param esize > > > > + * The size of ring element, in bytes. It must be a multiple of 4. > > >

Re: [dpdk-dev] [RFC 1/1] lib/ring: add scatter gather and serial dequeue APIs

2020-03-02 Thread Ananyev, Konstantin
> > > +/** > > > + * @internal Reserve ring elements to enqueue several objects on the > > > +ring > > > + * > > > + * @param r > > > + * A pointer to the ring structure. > > > + * @param esize > > > + * The size of ring element, in bytes. It must be a multiple of 4. > > > + * This must be

Re: [dpdk-dev] [RFC 1/1] lib/ring: add scatter gather and serial dequeue APIs

2020-02-27 Thread Honnappa Nagarahalli
> > > Hi Honnappa, Thanks Konstantin for the comments. > > > Add scatter gather APIs to avoid intermediate memcpy. Serial dequeue > > APIs are added to support access to ring elements before actual > > dequeue. > > > > Signed-off-by: Honnappa Nagarahalli > > Reviewed-by: Gavin Hu > > Reviewed

Re: [dpdk-dev] [RFC 1/1] lib/ring: add scatter gather and serial dequeue APIs

2020-02-26 Thread Ananyev, Konstantin
> > +/** > > + * @internal Reserve ring elements to enqueue several objects on the ring > > + * > > + * @param r > > + * A pointer to the ring structure. > > + * @param esize > > + * The size of ring element, in bytes. It must be a multiple of 4. > > + * This must be the same value used while

Re: [dpdk-dev] [RFC 1/1] lib/ring: add scatter gather and serial dequeue APIs

2020-02-26 Thread Ananyev, Konstantin
Hi Honnappa, > Add scatter gather APIs to avoid intermediate memcpy. Serial > dequeue APIs are added to support access to ring elements > before actual dequeue. > > Signed-off-by: Honnappa Nagarahalli > Reviewed-by: Gavin Hu > Reviewed-by: Ola Liljedahl > --- > lib/librte_ring/Makefile

[dpdk-dev] [RFC 1/1] lib/ring: add scatter gather and serial dequeue APIs

2020-02-24 Thread Honnappa Nagarahalli
Add scatter gather APIs to avoid intermediate memcpy. Serial dequeue APIs are added to support access to ring elements before actual dequeue. Signed-off-by: Honnappa Nagarahalli Reviewed-by: Gavin Hu Reviewed-by: Ola Liljedahl --- lib/librte_ring/Makefile | 1 + lib/librte_ring/mes