ethdev: add queue state in queried queue information
authorLijun Ou <oulijun@huawei.com>
Mon, 19 Apr 2021 08:57:30 +0000 (16:57 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 19 Apr 2021 16:25:35 +0000 (18:25 +0200)
commit9ad9ff476cac033ca76e7edb4d7797867c7be5b1
tree9bf192dcd5868d7c4f59e8e127b653fbac4627df
parentbe1650f734b7e478ce485587266e0f858c0cc21f
ethdev: add queue state in queried queue information

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@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
devtools/libabigail.abignore
doc/guides/rel_notes/release_21_05.rst
lib/ethdev/ethdev_driver.h
lib/ethdev/rte_ethdev.c
lib/ethdev/rte_ethdev.h