Re: [dpdk-dev] [PATCH V2] ethdev: add queue state when retrieve queue information

2021-04-14 Thread Ananyev, Konstantin
> Hi Lijun, > > Let's try to complete this for the release. > > On 4/6/2021 3:02 PM, Ananyev, Konstantin wrote: > > Hi, > > > >> Currently, upper-layer application could get queue state only > >> through pointers such as dev->data->tx_queue_state[queue_id], > >> this is not the recommended way

Re: [dpdk-dev] [PATCH V2] ethdev: add queue state when retrieve queue information

2021-04-14 Thread Ferruh Yigit
Hi Lijun, Let's try to complete this for the release. On 4/6/2021 3:02 PM, Ananyev, Konstantin wrote: Hi, Currently, upper-layer application could get queue state only through pointers such as dev->data->tx_queue_state[queue_id], this is not the recommended way to access it. So this patch add

Re: [dpdk-dev] [PATCH V2] ethdev: add queue state when retrieve queue information

2021-04-14 Thread Ferruh Yigit
On 4/6/2021 2:55 AM, Stephen Hemminger wrote: On Tue, 6 Apr 2021 08:49:04 +0800 oulijun wrote: /** + * RX/TX queue states + */ +#define RTE_ETH_QUEUE_STATE_STOPPED 0 +#define RTE_ETH_QUEUE_STATE_STARTED 1 +#define RTE_ETH_QUEUE_STATE_HAIRPIN 2 These could be an enum? These values are a

Re: [dpdk-dev] [PATCH V2] ethdev: add queue state when retrieve queue information

2021-04-06 Thread Ananyev, Konstantin
Hi, > Currently, upper-layer application could get queue state only > through pointers such as dev->data->tx_queue_state[queue_id], > this is not the recommended way to access it. So this patch > add get queue state when call rte_eth_rx_queue_info_get and > rte_eth_tx_queue_info_get API. > > Note

Re: [dpdk-dev] [PATCH V2] ethdev: add queue state when retrieve queue information

2021-04-05 Thread Stephen Hemminger
On Tue, 6 Apr 2021 08:49:04 +0800 oulijun wrote: > > /** > > + * RX/TX queue states > > + */ > > +#define RTE_ETH_QUEUE_STATE_STOPPED 0 > > +#define RTE_ETH_QUEUE_STATE_STARTED 1 > > +#define RTE_ETH_QUEUE_STATE_HAIRPIN 2 These could be an enum? > > +/** > >* Ethernet device RX queue info

Re: [dpdk-dev] [PATCH V2] ethdev: add queue state when retrieve queue information

2021-04-05 Thread oulijun
Hi, all, any comments for this patch? Hope for your reply. Thanks 在 2021/3/25 19:09, Lijun Ou 写道: Currently, upper-layer application could get queue state only through pointers such as dev->data->tx_queue_state[queue_id], this is not the recommended way to access it. So this patch add g

[dpdk-dev] [PATCH V2] ethdev: add queue state when retrieve queue information

2021-03-25 Thread Lijun Ou
Currently, upper-layer application could get queue state only through pointers such as dev->data->tx_queue_state[queue_id], this is not the recommended way to access it. So this patch add get queue state when call rte_eth_rx_queue_info_get and rte_eth_tx_queue_info_get API. Note: The hairpin queue