[dpdk-dev] [PATCH 1/2] l3fwd-power: exit if initializing power library failed

Hunt, David david.hunt at intel.com
Thu Apr 9 10:42:43 CEST 2020


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.burakov at intel.com>
> ---
>   examples/l3fwd-power/main.c | 20 +++++++++++---------
>   1 file changed, 11 insertions(+), 9 deletions(-)
>

Acked-by: David Hunt <david.hunt at intel.com>




More information about the dev mailing list