Re: [PATCH] app/testpmd: fix segment fault with invalid queue id

2023-05-22 Thread huangdengdui
On 2023/5/16 23:12, Stephen Hemminger wrote: > On Tue, 16 May 2023 19:00:21 +0800 > Dengdui Huang wrote: > >> When input queue id is invalid, it will lead to >> Segmentation fault, like: >> >> dpdk-testpmd -a :01:00.0 -- -i >> testpmd> show port 0 txq/rxq 99 desc 0 status >> Segmentation fa

Re: [PATCH] app/testpmd: fix segment fault with invalid queue id

2023-05-16 Thread Stephen Hemminger
On Tue, 16 May 2023 19:00:21 +0800 Dengdui Huang wrote: > When input queue id is invalid, it will lead to > Segmentation fault, like: > > dpdk-testpmd -a :01:00.0 -- -i > testpmd> show port 0 txq/rxq 99 desc 0 status > Segmentation fault > > dpdk-testpmd -a :01:00.0 -- -i > testpmd> s

[PATCH] app/testpmd: fix segment fault with invalid queue id

2023-05-16 Thread Dengdui Huang
When input queue id is invalid, it will lead to Segmentation fault, like: dpdk-testpmd -a :01:00.0 -- -i testpmd> show port 0 txq/rxq 99 desc 0 status Segmentation fault dpdk-testpmd -a :01:00.0 -- -i testpmd> show port 0 rxq 99 desc used count Segmentation fault This patch fixes it. In