Re: [dpdk-dev] [PATCH v3 1/6] app/testpmd: fix missing verification of port id

2020-09-22 Thread Ferruh Yigit
On 9/19/2020 11:47 AM, Wei Hu (Xavier) wrote: From: Chengchang Tang To set Tx vlan offloads, it is required to stop port firstly. But before checking whether the port is stopped, the port id entered by the user is not checked for validity. When the port id is illegal, it would lead to a segment

[dpdk-dev] [PATCH v3 1/6] app/testpmd: fix missing verification of port id

2020-09-19 Thread Wei Hu (Xavier)
From: Chengchang Tang To set Tx vlan offloads, it is required to stop port firstly. But before checking whether the port is stopped, the port id entered by the user is not checked for validity. When the port id is illegal, it would lead to a segmentation fault since it attempts to access a member