examples/l3fwd-power: fix updating lcore parameters
authorAnatoly Burakov <anatoly.burakov@intel.com>
Tue, 14 Jul 2020 10:30:02 +0000 (11:30 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 21 Jul 2020 23:44:37 +0000 (01:44 +0200)
commiteb8d9bbf9df021406a062510a8d230f1db6acb2d
treea1f90cbda02502b4bed6487b8142c20e9a431499
parent8b7b02f945e417f5348d78e523ce2c9c4f346d0b
examples/l3fwd-power: fix updating lcore parameters

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@intel.com>
Acked-by: David Hunt <david.hunt@intel.com>
examples/l3fwd-power/perf_core.c