test/lpm: avoid code duplication in RCU perf tests
authorDharmik Thakkar <dharmik.thakkar@arm.com>
Wed, 4 Nov 2020 18:58:58 +0000 (12:58 -0600)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 5 Nov 2020 15:01:16 +0000 (16:01 +0100)
commit924e8e1a29e59071863a985c0ed1cb1d256467b7
treea4158d9d40a1de8bfb44c91929c2a858092f2296
parentf02383671a624ff3336f3c76b42c25efacc88c7d
test/lpm: avoid code duplication in RCU perf tests

Avoid code duplication by combining single and multi threaded tests

Also, enable support for more than 2 writers

Signed-off-by: Dharmik Thakkar <dharmik.thakkar@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
app/test/test_lpm_perf.c