[dpdk-dev] [PATCH] ethdev: check if queues are allocated before getting info
Ferruh Yigit
ferruh.yigit at intel.com
Mon Oct 5 17:13:59 CEST 2020
On 10/1/2020 8:40 PM, Ajit Khaparde wrote:
> On Thu, Oct 1, 2020 at 11:14 AM Ferruh Yigit <ferruh.yigit at intel.com> wrote:
>>
>> 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 at intel.com>
>
> Reviewed-by: Ajit Khaparde <ajit.khaparde at broadcom.com>
>
Applied to dpdk-next-net/main, thanks.
More information about the dev
mailing list