On 9/19/2020 11:47 AM, Wei Hu (Xavier) wrote:
From: Chengchang Tang <[email protected]>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 of non-existent port. This patch adds verification of port id in tx vlan offloads and remove duplicated check. Fixes: 597f9fafe13b ("app/testpmd: convert to new Tx offloads API") Cc: [email protected] Signed-off-by: Chengchang Tang <[email protected]> Signed-off-by: Wei Hu (Xavier) <[email protected]>
Reviewed-by: Ferruh Yigit <[email protected]>

