> On Nov 2, 2020, at 7:28 PM, Honnappa Nagarahalli > <honnappa.nagaraha...@arm.com> wrote: > > <snip> > >> >> Return error if Add/Delete fail in multiwriter perf test >> >> Fixes: eff30b59cc2e ("test/lpm: add RCU performance tests") >> Cc: honnappa.nagaraha...@arm.com >> Cc: sta...@dpdk.org >> >> Signed-off-by: Dharmik Thakkar <dharmik.thak...@arm.com> >> Reviewed-by: Ruifeng Wang <ruifeng.w...@arm.com> >> --- >> app/test/test_lpm_perf.c | 4 ++++ >> 1 file changed, 4 insertions(+) >> >> diff --git a/app/test/test_lpm_perf.c b/app/test/test_lpm_perf.c index >> 45164b23214b..55084816ab91 100644 >> --- a/app/test/test_lpm_perf.c >> +++ b/app/test/test_lpm_perf.c >> @@ -453,6 +453,8 @@ test_lpm_rcu_qsbr_writer(void *arg) >> next_hop_add) != 0) { >> printf("Failed to add iteration %d, route# >> %d\n", >> i, j); >> + pthread_mutex_unlock(&lpm_mutex); >> + return -1; > Would be good to use the "goto error" method used in this file in other > functions. Yes, will update in the next version. > >> } >> pthread_mutex_unlock(&lpm_mutex); >> } >> @@ -464,6 +466,8 @@ test_lpm_rcu_qsbr_writer(void *arg) >> large_ldepth_route_table[j].depth) != 0) { >> printf("Failed to delete iteration %d, route# >> %d\n", >> i, j); >> + pthread_mutex_unlock(&lpm_mutex); >> + return -1; >> } >> pthread_mutex_unlock(&lpm_mutex); >> } >> -- >> 2.17.1
- Re: [dpdk-dev] [PATCH 1/4] test/lpm: fix cycle calcul... Bruce Richardson
- Re: [dpdk-dev] [PATCH 1/4] test/lpm: fix cycle c... Dharmik Thakkar
- Re: [dpdk-dev] [PATCH 1/4] test/lpm: fix cyc... Medvedkin, Vladimir
- Re: [dpdk-dev] [PATCH 1/4] test/lpm: fix cyc... Bruce Richardson
- [dpdk-dev] [PATCH v2 0/4] test/lpm: fix rcu qsbr perf... Dharmik Thakkar
- [dpdk-dev] [PATCH v2 4/4] test/lpm: avoid code d... Dharmik Thakkar
- Re: [dpdk-dev] [PATCH v2 4/4] test/lpm: avoi... Honnappa Nagarahalli
- Re: [dpdk-dev] [PATCH v2 4/4] test/lpm: ... Dharmik Thakkar
- [dpdk-dev] [PATCH v2 2/4] test/lpm: return error... Dharmik Thakkar
- Re: [dpdk-dev] [PATCH v2 2/4] test/lpm: retu... Honnappa Nagarahalli
- Re: [dpdk-dev] [PATCH v2 2/4] test/lpm: ... Dharmik Thakkar
- [dpdk-dev] [PATCH v2 3/4] test/lpm: remove error... Dharmik Thakkar
- Re: [dpdk-dev] [PATCH v2 3/4] test/lpm: remo... Honnappa Nagarahalli
- Re: [dpdk-dev] [PATCH v2 3/4] test/lpm: ... Dharmik Thakkar
- [dpdk-dev] [PATCH v2 1/4] test/lpm: fix cycle ca... Dharmik Thakkar
- Re: [dpdk-dev] [PATCH v2 1/4] test/lpm: fix ... Honnappa Nagarahalli
- [dpdk-dev] [PATCH v3 0/4] test/lpm: fix rcu qsbr... Dharmik Thakkar
- [dpdk-dev] [PATCH v3 4/4] test/lpm: avoid co... Dharmik Thakkar
- [dpdk-dev] [PATCH v3 2/4] test/lpm: return e... Dharmik Thakkar
- Re: [dpdk-dev] [PATCH v3 2/4] test/lpm: ... Honnappa Nagarahalli
- [dpdk-dev] [PATCH v3 1/4] test/lpm: fix cycl... Dharmik Thakkar