DPDK patches and discussions
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: "Wang, Xiao W" <xiao.w.wang@intel.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH v4] testpmd: fix wrong prompt in tx_vlan set	command handler
Date: Sat, 05 Mar 2016 19:57:47 +0100	[thread overview]
Message-ID: <1791028.uxNtJnaPXX@xps13> (raw)
In-Reply-To: <E115CCD9D858EF4F90C690B0DCB4D8973C8A0236@IRSMSX108.ger.corp.intel.com>

> > 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: 92ebda07ee58 ("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>

Applied, thanks

      reply	other threads:[~2016-03-05 18:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-05  4:50 Wang Xiao W
2016-02-05  9:20 ` De Lara Guarch, Pablo
2016-03-05 18:57   ` Thomas Monjalon [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1791028.uxNtJnaPXX@xps13 \
    --to=thomas.monjalon@6wind.com \
    --cc=dev@dpdk.org \
    --cc=xiao.w.wang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).