numam-dpdk/app
Chengchang Tang b428e71775 app/testpmd: fix port id check in Tx VLAN command
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: 597f9fafe1 ("app/testpmd: convert to new Tx offloads API")
Cc: stable@dpdk.org

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2020-09-30 19:19:13 +02:00
..
pdump build: remove makefiles 2020-09-08 00:09:50 +02:00
proc-info ethdev: support getting Rx buffer size in Rx queue info 2020-09-21 18:05:38 +02:00
test app: remove references to make-based config 2020-10-01 16:41:20 +02:00
test-acl build: remove makefiles 2020-09-08 00:09:50 +02:00
test-bbdev app: remove references to make-based config 2020-10-01 16:41:20 +02:00
test-cmdline build: remove makefiles 2020-09-08 00:09:50 +02:00
test-compress-perf build: remove makefiles 2020-09-08 00:09:50 +02:00
test-crypto-perf build: remove makefiles 2020-09-08 00:09:50 +02:00
test-eventdev build: remove makefiles 2020-09-08 00:09:50 +02:00
test-fib build: remove makefiles 2020-09-08 00:09:50 +02:00
test-flow-perf app/flow-perf: allow fixed values for actions 2020-09-18 18:55:11 +02:00
test-pipeline app: use new link status print format 2020-09-21 18:05:37 +02:00
test-pmd app/testpmd: fix port id check in Tx VLAN command 2020-09-30 19:19:13 +02:00
test-regex build: remove makefiles 2020-09-08 00:09:50 +02:00
test-sad build: remove makefiles 2020-09-08 00:09:50 +02:00
meson.build app/regex: add RegEx test application 2020-07-30 09:13:52 +02:00