Message ID | 1491909956-23283-2-git-send-email-bogdan.pricope@linaro.org |
---|---|
State | Accepted |
Commit | 2e8f024440a1e770068b1e9a9d50770ab166e40d |
Headers | show |
Series | examples: generator: various fixes | expand |
For this patch series Reviewed-and-tested-by: Yi He <yi.he@linaro.org> On 11 April 2017 at 19:25, Bogdan Pricope <bogdan.pricope@linaro.org> wrote: > Signed-off-by: Bogdan Pricope <bogdan.pricope@linaro.org> > --- > example/generator/odp_generator.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/example/generator/odp_generator.c b/example/generator/odp_ > generator.c > index 95fb543..63e3f2b 100644 > --- a/example/generator/odp_generator.c > +++ b/example/generator/odp_generator.c > @@ -513,8 +513,8 @@ static int gen_send_thread(void *arg) > > for (;;) { > if (args->appl.number != -1 && > - odp_atomic_fetch_add_u64(&counters.cnt, > 1) >= > - (unsigned int)args->appl.number) > + odp_atomic_fetch_add_u64(&counters.cnt, > pkt_array_size) >= > + (unsigned int)args->appl.number) > break; > > if (args->appl.mode == APPL_MODE_UDP) { > -- > 1.9.1 > >
diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c index 95fb543..63e3f2b 100644 --- a/example/generator/odp_generator.c +++ b/example/generator/odp_generator.c @@ -513,8 +513,8 @@ static int gen_send_thread(void *arg) for (;;) { if (args->appl.number != -1 && - odp_atomic_fetch_add_u64(&counters.cnt, 1) >= - (unsigned int)args->appl.number) + odp_atomic_fetch_add_u64(&counters.cnt, pkt_array_size) >= + (unsigned int)args->appl.number) break; if (args->appl.mode == APPL_MODE_UDP) {
Signed-off-by: Bogdan Pricope <bogdan.pricope@linaro.org> --- example/generator/odp_generator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 1.9.1