examples/l3fwd-power: fix power library fallback
authorMoti Haimovsky <motih@mellanox.com>
Wed, 7 Nov 2018 14:09:28 +0000 (14:09 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 14 Nov 2018 03:39:56 +0000 (04:39 +0100)
commit6265115f94d8d40fa1e78e8ea01f6de3a369c61f
tree754d5ac93f657d4954bdd727d78858f695a69f78
parentaccf8ca7b03de24b2b6818b9eda2bf73ce736372
examples/l3fwd-power: fix power library fallback

This patch replaces the rte_exit routine with error printing when
init_power_library() fails and by that restores the previous behavior
of the program (which was to issue an error message and continue
working if init_power_library fails). This allows the user to still
experience the Rx interrupts feature of the DPDK demonstrated in
this program.

Fixes: f88e7c175a68 ("examples/l3fwd-power: add high/regular perf cores options")
Cc: stable@dpdk.org
Signed-off-by: Moti Haimovsky <motih@mellanox.com>
Acked-by: David Hunt <david.hunt@intel.com>
examples/l3fwd-power/main.c