test: proceed if timer subsystem already initialized
authorStanislaw Kardach <kda@semihalf.com>
Fri, 26 Mar 2021 10:47:59 +0000 (11:47 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 8 Apr 2021 21:13:25 +0000 (23:13 +0200)
commit3dd7d693ff73dac58999ed7ea6b27d0adc8dc6bc
tree91baf92fcf3da9c0634908acca09e3f3a0f1e83a
parent5516e4760eb48c97bbaba195b18dda2302eeeb4f
test: proceed if timer subsystem already initialized

rte_timer_subsystem_init() may return -EALREADY if the timer subsystem
was already initialized. This can happen i.e. in PMD code (see
eth_ena_dev_init). This is not an error, rather a notification as the
initialization function simply returns without any action taken.

Fixes: 50247fe03fe0 ("test/timer: exercise new APIs in secondary process")
Cc: stable@dpdk.org
Signed-off-by: Stanislaw Kardach <kda@semihalf.com>
Reviewed-by: Michal Krawczyk <mk@semihalf.com>
app/test/test.c