test suite reviews and discussions
 help / color / mirror / Atom feed
From: Weiyuan Li <weiyuanx.li@intel.com>
To: dts@dpdk.org
Cc: Weiyuan Li <weiyuanx.li@intel.com>
Subject: [dts][PATCH V1] tests/vf_offload: set vlan filter and vlan id on ixgbe
Date: Mon, 27 Mar 2023 18:07:46 +0800	[thread overview]
Message-ID: <20230327100746.497148-1-weiyuanx.li@intel.com> (raw)

The ixgbe kernel driver has vlan filter enabled by default, so set vlan
filter and vlan id on dpdk.

Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
 tests/TestSuite_vf_offload.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/TestSuite_vf_offload.py b/tests/TestSuite_vf_offload.py
index 9475ef22..5fee1d42 100644
--- a/tests/TestSuite_vf_offload.py
+++ b/tests/TestSuite_vf_offload.py
@@ -437,6 +437,12 @@ class TestVfOffload(TestCase):
         self.vm0_testpmd.execute_cmd("set promisc 1 on")
         self.vm0_testpmd.execute_cmd("set promisc 0 on")
 
+        # ixgbe kernel drvier has vlan filter enabled by default.
+        # so set vlan filter and vlan id on dpdk.
+        if self.kdriver == "ixgbe":
+            self.vm0_testpmd.execute_cmd("vlan set filter on 0")
+            self.vm0_testpmd.execute_cmd("rx_vlan add 100 0")
+
         time.sleep(2)
         mac = self.vm0_testpmd.get_port_mac(0)
         sndIP = "10.0.0.1"
-- 
2.27.0


             reply	other threads:[~2023-03-27  3:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-27 10:07 Weiyuan Li [this message]
2023-03-28  1:16 ` lijuan.tu

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=20230327100746.497148-1-weiyuanx.li@intel.com \
    --to=weiyuanx.li@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).