git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ipc: end multiprocess thread during cleanup
[dpdk.git]
/
lib
/
power
/
rte_power_pmd_mgmt.c
diff --git
a/lib/power/rte_power_pmd_mgmt.c
b/lib/power/rte_power_pmd_mgmt.c
index
0ce40f0
..
39a2b4c
100644
(file)
--- a/
lib/power/rte_power_pmd_mgmt.c
+++ b/
lib/power/rte_power_pmd_mgmt.c
@@
-382,8
+382,13
@@
queue_stopped(const uint16_t port_id, const uint16_t queue_id)
{
struct rte_eth_rxq_info qinfo;
{
struct rte_eth_rxq_info qinfo;
- if (rte_eth_rx_queue_info_get(port_id, queue_id, &qinfo) < 0)
- return -1;
+ int ret = rte_eth_rx_queue_info_get(port_id, queue_id, &qinfo);
+ if (ret < 0) {
+ if (ret == -ENOTSUP)
+ return 1;
+ else
+ return -1;
+ }
return qinfo.queue_state == RTE_ETH_QUEUE_STATE_STOPPED;
}
return qinfo.queue_state == RTE_ETH_QUEUE_STATE_STOPPED;
}