power: fix multi-queue scale mode
authorAnatoly Burakov <anatoly.burakov@intel.com>
Wed, 21 Jul 2021 14:26:25 +0000 (14:26 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 22 Jul 2021 19:36:30 +0000 (21:36 +0200)
commit565d01226e3ce5ab260ee29cfe1019b413dee752
tree64a2e6200bf24d64abcbf58d14b4017d2dc15cf2
parentbfcf91111286be909b818b73d68e815b54cf2ac3
power: fix multi-queue scale mode

Currently in scale mode, multi-queue initialization will attempt to
initialize and de-initialize the per-lcore power library structures
multiple times. Fix it to only do this whenever we either enabling
first queue or disabling last queue.

Fixes: 5dff9a72b0ef ("power: support callbacks for multiple Rx queues")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Tested-by: David Hunt <david.hunt@intel.com>
lib/power/rte_power_pmd_mgmt.c