numam-dpdk/lib/librte_ethdev
Ferruh Yigit 7ae5c75f37 ethdev: check if queues are allocated before getting info
A crash is detected when '--txpkts=#' parameter provided to the testpmd,
this is because queue information is requested before queues have been
allocated.

Adding check to queue info APIs
('rte_eth_rx_queue_info_get()' & 'rte_eth_tx_queue_info_get')
to protect against similar cases.

Fixes: ba2fb4f022fc ("ethdev: check if queue setup when getting queue info")

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
2020-10-08 19:58:11 +02:00
..
2019-10-27 22:03:06 +01:00
2020-05-11 00:37:16 +02:00
2020-04-23 15:40:06 +02:00
2020-04-23 15:40:06 +02:00
2018-04-27 18:01:00 +01:00