Re: [dpdk-dev] [PATCH v2 3/5] test: add distributor_perf autotest

2017-01-04 Thread Jerin Jacob
On Mon, Jan 02, 2017 at 04:24:01PM +, Hunt, David wrote: > > > On 22/12/2016 12:19 PM, Jerin Jacob wrote: > > On Thu, Dec 22, 2016 at 04:37:06AM +, David Hunt wrote: > > > + struct rte_distributor_burst *d = arg; > > > + unsigned int count = 0; > > > + unsigned int num = 0; > > > + unsign

Re: [dpdk-dev] [PATCH v2 3/5] test: add distributor_perf autotest

2017-01-02 Thread Hunt, David
On 22/12/2016 12:19 PM, Jerin Jacob wrote: On Thu, Dec 22, 2016 at 04:37:06AM +, David Hunt wrote: + struct rte_distributor_burst *d = arg; + unsigned int count = 0; + unsigned int num = 0; + unsigned int id = __sync_fetch_and_add(&worker_idx, 1); Use rte_atomic eq

Re: [dpdk-dev] [PATCH v2 3/5] test: add distributor_perf autotest

2016-12-22 Thread Jerin Jacob
On Thu, Dec 22, 2016 at 04:37:06AM +, David Hunt wrote: > Signed-off-by: David Hunt > --- > + * it does nothing but return packets and count them. > + */ > +static int > +handle_work_burst(void *arg) > +{ > + //struct rte_mbuf *pkt = NULL; Seems like their is lot test code with // in this

[dpdk-dev] [PATCH v2 3/5] test: add distributor_perf autotest

2016-12-22 Thread David Hunt
Signed-off-by: David Hunt --- app/test/test_distributor_perf.c | 133 +-- 1 file changed, 127 insertions(+), 6 deletions(-) diff --git a/app/test/test_distributor_perf.c b/app/test/test_distributor_perf.c index 7947fe9..86285fd 100644 --- a/app/test/test_distr