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

Ferruh Yigit ferruh.yigit at intel.com
Mon Apr 19 12:48:47 CEST 2021


On 4/19/2021 10:03 AM, Thomas Monjalon wrote:
> 19/04/2021 10:57, 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: After add queue_state field, the 'struct rte_eth_rxq_info' size
>> remains 128B, and the 'struct rte_eth_txq_info' size remains 64B, so
>> it could be ABI compatible.
>>
>> Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
>> Signed-off-by: Lijun Ou <oulijun at huawei.com>
>> Acked-by: Konstantin Ananyev <konstantin.ananyev at intel.com>
> 
> Acked-by: Thomas Monjalon <thomas at monjalon.net>
> 

Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>

Applied to dpdk-next-net/main, thanks.



More information about the dev mailing list