Hi Anatoly,
On 8/4/2020 4:56 PM, Anatoly Burakov wrote:
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.bura...@intel.com>
---
examples/l3fwd-power/main.c | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
Acked-by: David Hunt <david.h...@intel.com>