examples/performance-thread: fix build with low core count
authorHonnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Fri, 16 Oct 2020 06:03:49 +0000 (01:03 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 30 Oct 2020 14:45:59 +0000 (15:45 +0100)
commit4e3b2d4c76e6249e44b92ffa7c62c031eb23af81
tree3473a9066af5f5bd30592eea34ffaf4c48caaaa6
parent0ca6007efc3a74f5d4184a7844a40cc7f4ad2c1d
examples/performance-thread: fix build with low core count

When the value of RTE_MAX_LCORE is small, it results in the
following compilation error.

../examples/performance-thread/l3fwd-thread/main.c:2338:34: error:
iteration 4 invokes undefined behavior
[-Werror=aggressive-loop-optimizations]

Fixes: d48415e1fee3 ("examples/performance-thread: add l3fwd-thread app")
Cc: stable@dpdk.org
Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Tested-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Reviewed-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
examples/performance-thread/l3fwd-thread/main.c