Hi Vladimir,

> -----Original Message-----
> From: Medvedkin, Vladimir <[email protected]>
> Sent: Thursday, September 19, 2019 00:18
> To: Ruifeng Wang (Arm Technology China) <[email protected]>;
> [email protected]; [email protected]
> Cc: [email protected]; [email protected];
> [email protected]; Gavin Hu (Arm Technology China)
> <[email protected]>; Honnappa Nagarahalli
> <[email protected]>; Dharmik Thakkar
> <[email protected]>; nd <[email protected]>; [email protected]
> Subject: Re: [PATCH v2 5/6] test/lpm: reset total time
> 
> Hi Ruifeng,
> 
> Thanks for this bug fix.
> 
> I think it should be sent separately from this RCU related patch series.
Agree. It will be sent out separately.
> 
> On 06/09/2019 10:45, Ruifeng Wang wrote:
> > From: Honnappa Nagarahalli <[email protected]>
> >
> > total_time needs to be reset to measure the cycles for delete API.
> >
> > Fixes: af75078fece3 ("first public release")
> > Cc: [email protected]
> >
> > Signed-off-by: Honnappa Nagarahalli <[email protected]>
> > Reviewed-by: Gavin Hu <[email protected]>
> > Reviewed-by: Ruifeng Wang <[email protected]>
> > ---
> >   app/test/test_lpm_perf.c | 4 ++--
> >   1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/app/test/test_lpm_perf.c b/app/test/test_lpm_perf.c index
> > 77eea66ad..a2578fe90 100644
> > --- a/app/test/test_lpm_perf.c
> > +++ b/app/test/test_lpm_perf.c
> > @@ -460,7 +460,7 @@ test_lpm_perf(void)
> >                     (double)total_time / ((double)ITERATIONS *
> BATCH_SIZE),
> >                     (count * 100.0) / (double)(ITERATIONS *
> BATCH_SIZE));
> >
> > -   /* Delete */
> > +   /* Measure Delete */
> >     status = 0;
> >     begin = rte_rdtsc();
> >
> > @@ -470,7 +470,7 @@ test_lpm_perf(void)
> >                             large_route_table[i].depth);
> >     }
> >
> > -   total_time += rte_rdtsc() - begin;
> > +   total_time = rte_rdtsc() - begin;
> >
> >     printf("Average LPM Delete: %g cycles\n",
> >                     (double)total_time / NUM_ROUTE_ENTRIES);
> 
> --
> Regards,
> Vladimir

Reply via email to