test suite reviews and discussions
 help / color / mirror / Atom feed
From: "zhang,yan" <yanx.a.zhang@intel.com>
To: dts@dpdk.org
Cc: "zhang,yan" <yanx.a.zhang@intel.com>
Subject: [dts] [PATCH V1] tests/TestSuite_vf_vlan:set filter on before add vlan
Date: Tue, 23 Jul 2019 10:58:18 +0800	[thread overview]
Message-ID: <1563850698-39687-1-git-send-email-yanx.a.zhang@intel.com> (raw)

set filter on before add vlan.
Otherwise the following error will be reported:
    ---Port 0: vlan-filtering disabled
    ---rte_eth_dev_vlan_filter(port_pi=0, vlan_id=4095, on=1) failed diag=-38

Signed-off-by: zhang,yan <yanx.a.zhang@intel.com>
---
 tests/TestSuite_vf_vlan.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/TestSuite_vf_vlan.py b/tests/TestSuite_vf_vlan.py
index d0175b3..f50a7e5 100644
--- a/tests/TestSuite_vf_vlan.py
+++ b/tests/TestSuite_vf_vlan.py
@@ -289,6 +289,7 @@ class TestVfVlan(TestCase):
             # if you want insert tx_vlan,
             # please enable rx_vlan at the same time
             if self.kdriver == "i40e":
+                self.vm0_testpmd.execute_cmd('vlan set filter on 0')
                 self.vm0_testpmd.execute_cmd('rx_vlan add %d 0' % tx_vlan)
             self.vm0_testpmd.execute_cmd('stop')
             self.vm0_testpmd.execute_cmd('port stop all')
-- 
2.17.2


             reply	other threads:[~2019-07-23  2:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-23  2:58 zhang,yan [this message]
2019-07-23  2:54 ` Zhang, YanX A
2019-08-06  9:53 ` Tu, Lijuan

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=1563850698-39687-1-git-send-email-yanx.a.zhang@intel.com \
    --to=yanx.a.zhang@intel.com \
    --cc=dts@dpdk.org \
    /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).