numam-dpdk/app
Wang Xiao W 6a34f91690 app/testpmd: fix error message when setting Tx VLAN
When using testpmd, sometimes we forget the right order of port_id and
vid in "tx_vlan set (port_id) vlan_id[, vlan_id_outer]\n" command, and
input "tx_vlan set 51 0", we'll get a strange prompt saying "Error, as
QinQ has been enabled.".

In cmd_tx_vlan_set_parsed function, the first thing we do is checking
the port's vlan_offload capability, rather than checking validity of the
port_id, therefore if it's an invalid port_id we'll get the above wrong
message. We should always make sure that we get a valid port_id before
we do other things.

It's the similar issue for cmd_tx_vlan_set_qinq_parsed function.

Fixes: 92ebda07ee ("app/testpmd: add qinq stripping and insertion")

Signed-off-by: Wang Xiao W <xiao.w.wang@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
2016-03-05 19:57:29 +01:00
..
cmdline_test app/cmdline_test: add missing dependencies 2015-12-03 00:02:26 +01:00
proc_info config: remove useless explicit includes of generated header 2016-02-10 22:43:38 +01:00
test eal/arm: check support of armv8.1 atomics 2016-03-05 19:46:50 +01:00
test-acl acl: add NEON optimization for ARMv8 2015-11-18 22:44:01 +01:00
test-pipeline table: add key mask to 8 and 16-byte hash parameters 2015-11-26 00:45:50 +01:00
test-pmd app/testpmd: fix error message when setting Tx VLAN 2016-03-05 19:57:29 +01:00
Makefile config: remove EAL flags for OS environment 2016-03-05 11:09:31 +01:00