DPDK usage discussions
 help / color / mirror / Atom feed
* why rte_power_ethdev_pmgmt_queue_enable need to check if other queues are stopped
@ 2023-02-16 12:59 Xiaoping Yan (NSB)
  2023-02-20  6:12 ` Xiaoping Yan (NSB)
  0 siblings, 1 reply; 8+ messages in thread
From: Xiaoping Yan (NSB) @ 2023-02-16 12:59 UTC (permalink / raw)
  To: users

[-- Attachment #1: Type: text/plain, Size: 1055 bytes --]

Hi experts,

I'm trying to use dpdk power pmd management APIs in my dpdk application.
My application uses several ports, each have one rx queue, and it goes like this

1.     Init first port, setup rx queue, call rte_power_ethdev_pmgmt_queue_enable, and start the first port

2.     Init second port, setup rx queue, call rte_power_ethdev_pmgmt_queue_enable, and start the second port

3.     ...
Now for the first port & queue, rte_power_ethdev_pmgmt_queue_enable return success, but for the second port & queue, it returns -16
From rte_power_ethdev_pmgmt_queue_enable code, I think it fails when checking if other queues are stopped as well.
    /* check if other queues are stopped as well */
    ret = cfg_queues_stopped(lcore_cfg);
    if (ret != 1) {
        /* error means invalid queue, 0 means queue wasn't stopped */
        ret = ret < 0 ? -EINVAL : -EBUSY;
        goto end;
    }
This seems quite strange for me, why other queues have to be in stopped state?
Can anyone help to explain?

Thank you.


Br, Xiaoping


[-- Attachment #2: Type: text/html, Size: 9650 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-02-21  1:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-16 12:59 why rte_power_ethdev_pmgmt_queue_enable need to check if other queues are stopped Xiaoping Yan (NSB)
2023-02-20  6:12 ` Xiaoping Yan (NSB)
2023-02-20 10:27   ` Burakov, Anatoly
2023-02-20 13:40     ` Xiaoping Yan (NSB)
2023-02-20 13:59       ` Burakov, Anatoly
2023-02-20 14:10         ` Xiaoping Yan (NSB)
2023-02-20 14:19           ` Burakov, Anatoly
2023-02-21  1:00             ` Xiaoping Yan (NSB)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).