Re: [dpdk-dev] [PATCH v3 5/8] stack: add lock-free stack implementation

2019-03-29 Thread Eads, Gage
> -Original Message- > From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@arm.com] > Sent: Thursday, March 28, 2019 6:27 PM > To: Eads, Gage ; dev@dpdk.org > Cc: olivier.m...@6wind.com; arybche...@solarflare.com; Richardson, Bruce > ; Ananyev, Konstantin > ; Gavin Hu (Arm Technology

Re: [dpdk-dev] [PATCH v3 5/8] stack: add lock-free stack implementation

2019-03-28 Thread Honnappa Nagarahalli
> diff --git a/lib/librte_stack/rte_stack.c b/lib/librte_stack/rte_stack.c index > 96dffdf44..8f0361ea1 100644 > --- a/lib/librte_stack/rte_stack.c > +++ b/lib/librte_stack/rte_stack.c > @@ -63,9 +81,16 @@ rte_stack_create(const char *name, unsigned int > count, int socket_id, > unsigned

Re: [dpdk-dev] [PATCH v3 5/8] stack: add lock-free stack implementation

2019-03-14 Thread Olivier Matz
On Wed, Mar 06, 2019 at 08:45:56AM -0600, Gage Eads wrote: > This commit adds support for a lock-free (linked list based) stack to the > stack API. This behavior is selected through a new rte_stack_create() flag, > RTE_STACK_F_LF. > > The stack consists of a linked list of elements, each containin

[dpdk-dev] [PATCH v3 5/8] stack: add lock-free stack implementation

2019-03-06 Thread Gage Eads
This commit adds support for a lock-free (linked list based) stack to the stack API. This behavior is selected through a new rte_stack_create() flag, RTE_STACK_F_LF. The stack consists of a linked list of elements, each containing a data pointer and a next pointer, and an atomic stack depth counte