[dpdk-dev] [PATCH] examples/l3fw-power: do not exit on power lib init failure

De Lara Guarch, Pablo pablo.de.lara.guarch at intel.com
Thu Jul 26 19:39:05 CEST 2018


Hi Radu,

> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Radu Nicolau
> Sent: Wednesday, July 18, 2018 2:50 PM
> To: dev at dpdk.org
> Cc: Hunt, David <david.hunt at intel.com>; Yao, Lei A <lei.a.yao at intel.com>;
> Nicolau, Radu <radu.nicolau at intel.com>
> Subject: [dpdk-dev] [PATCH] examples/l3fw-power: do not exit on power lib init
> failure
> 
> Do not exit the application if power library fails to initialize or high performance
> cores configuration cannot be used.

I would say this deserves more explanation. It doesn't look correct to me to keep log an error that
the power library couldn't be initialized and still the sample application keeps running.

Actually, the way init_power_library is coded, it returns the output of the call of rte_power_init on the last core
(ret is overwritten for each core), which looks wrong to me.

Thanks,
Pablo
> 
> Signed-off-by: Radu Nicolau <radu.nicolau at intel.com>
> ---



More information about the dev mailing list