Go to file
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
app app/testpmd: fix error message when setting Tx VLAN 2016-03-05 19:57:29 +01:00
config config: remove EAL flags for OS environment 2016-03-05 11:09:31 +01:00
doc doc: tidy sections in release notes 2016-03-04 16:51:20 +01:00
drivers ethdev: fix byte order consistency of flow director 2016-03-04 16:50:58 +01:00
examples examples/l3fwd: rework exact-match 2016-02-29 11:45:00 +01:00
lib eal/arm: check support of armv8.1 atomics 2016-03-05 19:46:50 +01:00
mk mk: fix error message 2016-03-03 11:36:32 +01:00
pkg version: 2.2.0 2015-12-15 18:06:58 +01:00
scripts mk: replace the combined library with a linker script 2016-03-01 14:37:27 +01:00
tools tools: support binding to built-in kernel modules 2016-02-09 16:03:46 +01:00
.gitignore init DPDK repository 2013-03-07 10:57:42 +01:00
GNUmakefile drivers: create new directory 2015-05-22 15:51:38 +02:00
LICENSE.GPL doc: GPL/LGPL licenses 2013-07-25 14:43:06 +02:00
LICENSE.LGPL doc: fix file format (dos to unix) 2013-09-06 11:43:07 +02:00
MAINTAINERS eal: move CPU flag functions out of headers 2016-02-16 08:28:00 +01:00
Makefile remove trailing whitespaces 2014-06-11 00:29:34 +02:00
README doc: add readme file 2015-12-13 22:06:58 +01:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD license for the core libraries and
drivers. The kernel components are GPLv2 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org