[PATCH v4 2/2] app/testpmd: fix segment fault with invalid queue ID
Ferruh Yigit
ferruh.yigit at amd.com
Fri Jun 2 14:47:37 CEST 2023
On 6/2/2023 8:52 AM, Dengdui Huang wrote:
> When input queue ID is invalid, it will lead to
> Segmentation fault, like:
>
> dpdk-testpmd -a 0000:01:00.0 -- -i
> testpmd> show port 0 txq/rxq 99 desc 0 status
> Segmentation fault
>
> dpdk-testpmd -a 0000:01:00.0 -- -i
> testpmd> show port 0 rxq 99 desc used count
> Segmentation fault
>
> This patch fixes it.
>
> Fixes: fae9aa717d6c ("app/testpmd: support checking descriptor status")
> Fixes: 3f9acb5c83bb ("ethdev: avoid non-dataplane checks in Rx queue count")
> Cc: stable at dpdk.org
>
> Signed-off-by: Dengdui Huang <huangdengdui at huawei.com>
>
Acked-by: Ferruh Yigit <ferruh.yigit at amd.com>
More information about the dev
mailing list