Anatoly Burakov a163130bd6 examples/l3fwd-power: exit on power lib init failure
Currently, if power library initialization fails, only a log message is
displayed. This is suboptimal for a number of reasons, but the main one
is that telemetry mode does not depend on the power library and can
therefore run in environments where l3fwd-power would normally not run
correctly (such as inside a VM). This will lead to attempts to
deinitialize the power library on exit, with a subsequent forced unclean
shutdown of DPDK.

Fix this by only initializing the power library in modes that actually
need it, and change a log message to a failure to initialize.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: David Hunt <david.hunt@intel.com>
Reviewed-by: Reshma Pattan <reshma.pattan@intel.com>
2020-04-26 23:48:41 +02:00
..
2020-04-16 18:30:58 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-16 18:30:58 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-16 18:16:46 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-16 18:30:58 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2020-04-21 13:57:06 +02:00
2020-04-23 15:40:06 +02:00