numam-dpdk/app/test-fib
Vladimir Medvedkin a01070dac9 app/fib: fix division by zero
This patch fixes the division by 0, which occurs if the number of
routes is less than 10.
Can be triggered by passing -n argument with value < 10:

./dpdk-test-fib -- -n 9
...
Floating point exception (core dumped)

Fixes: 103809d032 ("app/test-fib: add test application for FIB")
Cc: stable@dpdk.org

Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
Acked-by: Kevin Traynor <ktraynor@redhat.com>
2022-02-11 08:50:13 +01:00
..
main.c app/fib: fix division by zero 2022-02-11 08:50:13 +01:00
meson.build devtools: forbid indent with tabs in Meson 2021-11-02 19:25:30 +01:00