[dpdk-dev] [PATCH 2/2] l3fwd-power: fix updating performance lcore parameters

Hunt, David david.hunt at intel.com
Mon Jul 13 14:29:29 CEST 2020


On 13/7/2020 1:15 PM, Anatoly Burakov wrote:
> When perf-config option is specified, we are calling into the power
> library even though it may not necessarily be enabled. It is
> questionable whether perf-config option is even applicable to non-power
> library modes, but for now, fix it just by avoiding calling into the
> power library if it wasn't initialized, and assume that every lcore is
> high performance core.
>
> Fixes: e0194feb322c ("examples/l3fwd-power: add interrupt-only mode")
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---
>   examples/l3fwd-power/perf_core.c | 27 +++++++++++++++++++--------
>   1 file changed, 19 insertions(+), 8 deletions(-)

We saw a segfault with the following use-case: ./l3fwd-power -l 0,1 -- 
-p 0x1 -P --perf-config="(0,0,1,0)"

I've tested it and now runs without segfault.

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




More information about the dev mailing list