From: Moti Haimovsky Date: Wed, 7 Nov 2018 14:09:28 +0000 (+0000) Subject: examples/l3fwd-power: fix power library fallback X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6265115f94d8d40fa1e78e8ea01f6de3a369c61f;p=dpdk.git 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 Acked-by: David Hunt --- diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index 0b3f8fe61c..9c7b315642 100644 --- a/examples/l3fwd-power/main.c +++ b/examples/l3fwd-power/main.c @@ -1957,7 +1957,7 @@ main(int argc, char **argv) rte_exit(EXIT_FAILURE, "Invalid L3FWD parameters\n"); if (init_power_library()) - rte_exit(EXIT_FAILURE, "init_power_library failed\n"); + RTE_LOG(ERR, L3FWD_POWER, "init_power_library failed\n"); if (update_lcore_params() < 0) rte_exit(EXIT_FAILURE, "update_lcore_params failed\n");