test/rcu: increase size of core numbers
authorHonnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Fri, 28 Jun 2019 18:43:41 +0000 (13:43 -0500)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 29 Jun 2019 12:29:52 +0000 (14:29 +0200)
commit104dbec2081a50dac9dc53b474a5acd8c5e4d296
treed8a26d053d75f9533175ebf1549746f8b82f19b3
parent292472ba0be75da85dec045a608e8dd162094141
test/rcu: increase size of core numbers

num_cores is of type uint8_t. This results in the following
compilation error.

test_rcu_qsbr_perf.c:649:16: error: comparison is always false
due to limited range of data type [-Werror=type-limits]
  if (num_cores >= RTE_MAX_LCORE) {
                ^~

RTE_MAX_LCORE is set to 256 for armv8 config.

Fixes: e6a14121f4ae ("test/rcu: remove arbitrary limit on max core count")
Cc: stable@dpdk.org
Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
app/test/test_rcu_qsbr.c
app/test/test_rcu_qsbr_perf.c