Re: [PATCH v2 1/2] ethdev: add API to check queue ID validity

2023-06-01 Thread huangdengdui
On 2023/6/2 6:13, Ferruh Yigit wrote: > On 5/31/2023 5:31 PM, Ferruh Yigit wrote: >> On 5/22/2023 2:58 PM, Andrew Rybchenko wrote: >>> On 5/22/23 16:09, Dengdui Huang wrote: The API rte_eth_dev_is_valid_rxq/txq checks the port ID validity and then the Rx/Tx queue ID is valid. >>> >>> What

Re: [PATCH v2 1/2] ethdev: add API to check queue ID validity

2023-06-01 Thread Ferruh Yigit
On 5/31/2023 5:31 PM, Ferruh Yigit wrote: > On 5/22/2023 2:58 PM, Andrew Rybchenko wrote: >> On 5/22/23 16:09, Dengdui Huang wrote: >>> The API rte_eth_dev_is_valid_rxq/txq checks >>> the port ID validity and then the Rx/Tx queue ID is valid. >> >> What is valid Tx/Rx queue? It depends on on caller

Re: [PATCH v2 1/2] ethdev: add API to check queue ID validity

2023-05-31 Thread Ferruh Yigit
On 5/22/2023 2:58 PM, Andrew Rybchenko wrote: > On 5/22/23 16:09, Dengdui Huang wrote: >> The API rte_eth_dev_is_valid_rxq/txq checks >> the port ID validity and then the Rx/Tx queue ID is valid. > > What is valid Tx/Rx queue? It depends on on caller > expectations. Some functions are satisfied wi

Re: [PATCH v2 1/2] ethdev: add API to check queue ID validity

2023-05-24 Thread Andrew Rybchenko
On 5/24/23 10:38, huangdengdui wrote: On 2023/5/22 21:58, Andrew Rybchenko wrote: On 5/22/23 16:09, Dengdui Huang wrote: The API rte_eth_dev_is_valid_rxq/txq checks the port ID validity and then the Rx/Tx queue ID is valid. What is valid Tx/Rx queue? It depends on on caller expectations. Some

Re: [PATCH v2 1/2] ethdev: add API to check queue ID validity

2023-05-24 Thread huangdengdui
On 2023/5/22 21:58, Andrew Rybchenko wrote: > On 5/22/23 16:09, Dengdui Huang wrote: >> The API rte_eth_dev_is_valid_rxq/txq checks >> the port ID validity and then the Rx/Tx queue ID is valid. > > What is valid Tx/Rx queue? It depends on on caller > expectations. Some functions are satisfied with

Re: [PATCH v2 1/2] ethdev: add API to check queue ID validity

2023-05-22 Thread Andrew Rybchenko
On 5/22/23 16:09, Dengdui Huang wrote: The API rte_eth_dev_is_valid_rxq/txq checks the port ID validity and then the Rx/Tx queue ID is valid. What is valid Tx/Rx queue? It depends on on caller expectations. Some functions are satisfied with just check vs configured number of queues. Some requir