Re: [dpdk-dev] [RFC 2/3] tqs: add thread quiescent state library

2018-12-17 Thread Stephen Hemminger
On Tue, 18 Dec 2018 04:30:39 + Honnappa Nagarahalli wrote: > > > > On 11-Dec-18 6:40 AM, Honnappa Nagarahalli wrote: > > >> > > > > > >>> + > > >>> +/* Add a reader thread, running on an lcore, to the list of > > >>> +threads > > >>> + * reporting their quiescent st

Re: [dpdk-dev] [RFC 2/3] tqs: add thread quiescent state library

2018-12-17 Thread Honnappa Nagarahalli
> > On 11-Dec-18 6:40 AM, Honnappa Nagarahalli wrote: > >> > > > >>> + > >>> +/* Add a reader thread, running on an lcore, to the list of > >>> +threads > >>> + * reporting their quiescent state on a TQS variable. > >>> + */ > >>> +int __rte_experimental > >>> +rte_

Re: [dpdk-dev] [RFC 2/3] tqs: add thread quiescent state library

2018-12-17 Thread Ananyev, Konstantin
> > > > > > > > > > > > > > + > > > > > > > +/* Add a reader thread, running on an lcore, to the list of > > > > > > > +threads > > > > > > > + * reporting their quiescent state on a TQS variable. > > > > > > > + */ > > > > > > > +int __rte_experimental > > > > > > > +rte_tqs_register_lcore(stru

Re: [dpdk-dev] [RFC 2/3] tqs: add thread quiescent state library

2018-12-13 Thread Burakov, Anatoly
On 11-Dec-18 6:40 AM, Honnappa Nagarahalli wrote: + +/* Add a reader thread, running on an lcore, to the list of +threads + * reporting their quiescent state on a TQS variable. + */ +int __rte_experimental +rte_tqs_register_lcore(struct rte_tqs *v, unsigned int lcore_id) { + TQS_RETURN_

Re: [dpdk-dev] [RFC 2/3] tqs: add thread quiescent state library

2018-12-12 Thread Honnappa Nagarahalli
> > > > > > > > > > > > + > > > > > > +/* Add a reader thread, running on an lcore, to the list of > > > > > > +threads > > > > > > + * reporting their quiescent state on a TQS variable. > > > > > > + */ > > > > > > +int __rte_experimental > > > > > > +rte_tqs_register_lcore(struct rte_tqs *v, un

Re: [dpdk-dev] [RFC 2/3] tqs: add thread quiescent state library

2018-12-12 Thread Ananyev, Konstantin
> > > > > > > > + > > > > > +/* Add a reader thread, running on an lcore, to the list of > > > > > +threads > > > > > + * reporting their quiescent state on a TQS variable. > > > > > + */ > > > > > +int __rte_experimental > > > > > +rte_tqs_register_lcore(struct rte_tqs *v, unsigned int lcore_id)

Re: [dpdk-dev] [RFC 2/3] tqs: add thread quiescent state library

2018-12-10 Thread Honnappa Nagarahalli
> > > > > > > > > > > + > > > > > > +/* Add a reader thread, running on an lcore, to the list of > > > > > > +threads > > > > > > + * reporting their quiescent state on a TQS variable. > > > > > > + */ > > > > > > +int __rte_experimental > > > > > > +rte_tqs_register_lcore(struct rte_tqs *v, unsig

Re: [dpdk-dev] [RFC 2/3] tqs: add thread quiescent state library

2018-12-07 Thread Stephen Hemminger
On Fri, 7 Dec 2018 07:27:16 + Honnappa Nagarahalli wrote: > > > > > > > > + > > > > > +/* Add a reader thread, running on an lcore, to the list of > > > > > +threads > > > > > + * reporting their quiescent state on a TQS variable. > > > > > + */ > > > > > +int __rte_experimental > > > > > +

Re: [dpdk-dev] [RFC 2/3] tqs: add thread quiescent state library

2018-12-06 Thread Honnappa Nagarahalli
> > > > > > + > > > > +/* Add a reader thread, running on an lcore, to the list of > > > > +threads > > > > + * reporting their quiescent state on a TQS variable. > > > > + */ > > > > +int __rte_experimental > > > > +rte_tqs_register_lcore(struct rte_tqs *v, unsigned int lcore_id) { > > > > +

Re: [dpdk-dev] [RFC 2/3] tqs: add thread quiescent state library

2018-11-28 Thread Ananyev, Konstantin
> > > > Hi Honnappa, > Thank you for reviewing the patch, appreciate your comments. > > > > > > + > > > +/* Allocate a new TQS variable with the name *name* in memory. */ > > > +struct rte_tqs * __rte_experimental rte_tqs_alloc(const char *name, > > > +int socket_id, uint64_t lcore_mask) { > > > +

Re: [dpdk-dev] [RFC 2/3] tqs: add thread quiescent state library

2018-11-27 Thread Honnappa Nagarahalli
> > Hi Honnappa, Thank you for reviewing the patch, appreciate your comments. > > > + > > +/* Allocate a new TQS variable with the name *name* in memory. */ > > +struct rte_tqs * __rte_experimental rte_tqs_alloc(const char *name, > > +int socket_id, uint64_t lcore_mask) { > > + char tqs_name[R

Re: [dpdk-dev] [RFC 2/3] tqs: add thread quiescent state library

2018-11-24 Thread Ananyev, Konstantin
Hi Honnappa, > + > +/* Allocate a new TQS variable with the name *name* in memory. */ > +struct rte_tqs * __rte_experimental > +rte_tqs_alloc(const char *name, int socket_id, uint64_t lcore_mask) > +{ > + char tqs_name[RTE_TQS_NAMESIZE]; > + struct rte_tailq_entry *te, *tmp_te; > + str