power: support missing Rx queue info
authorMiao Li <miao.li@intel.com>
Mon, 25 Oct 2021 14:47:24 +0000 (14:47 +0000)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 29 Oct 2021 10:32:29 +0000 (12:32 +0200)
commitc6e305141a98fe74796cb6da296a554b2706feeb
tree73d652f2e043ee8a1d2904a2a48bfbbebc4e3a64
parent327fcd2d3842eb8c86c18a815e1865e280356dbb
power: support missing Rx queue info

Since some vdevs like virtio and vhost do not support rxq_info_get and
queue state inquiry, the error return value -ENOTSUP need to be ignored
when queue_stopped cannot get rx queue information and rx queue state.
This patch changes the return value of queue_stopped when
rte_eth_rx_queue_info_get return -ENOTSUP to support vdevs which cannot
provide rx queue information and rx queue state enable power management.

Fixes: 209fd585456c ("power: make ethdev power management thread unsafe")
Cc: stable@dpdk.org
Signed-off-by: Miao Li <miao.li@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
lib/power/rte_power_pmd_mgmt.c