test suite reviews and discussions
 help / color / mirror / Atom feed
From: Qin Sun <qinx.sun@intel.com>
To: dts@dpdk.org
Cc: Qin Sun <qinx.sun@intel.com>
Subject: [dts] [PATCH V1] tests/cvl_dcf_switch_filter: set vf vlan for dcf mode
Date: Fri, 30 Apr 2021 16:57:14 +0000	[thread overview]
Message-ID: <20210430165714.19867-1-qinx.sun@intel.com> (raw)

Confirm with developer, dpdk is changed for VF DCF mode,
'vf-vlan-prune-disable' needs to be set before VF receives VLAN packets

Signed-off-by: Qin Sun <qinx.sun@intel.com>
---
 tests/TestSuite_cvl_dcf_switch_filter.py       | 4 ++++
 tests/TestSuite_cvl_dcf_switch_filter_pppoe.py | 4 ++++
 2 files changed, 8 insertions(+)
 mode change 100755 => 100644 tests/TestSuite_cvl_dcf_switch_filter.py

diff --git a/tests/TestSuite_cvl_dcf_switch_filter.py b/tests/TestSuite_cvl_dcf_switch_filter.py
old mode 100755
new mode 100644
index fc257cbe..dd7e0109
--- a/tests/TestSuite_cvl_dcf_switch_filter.py
+++ b/tests/TestSuite_cvl_dcf_switch_filter.py
@@ -1025,6 +1025,8 @@ class CVLDCFSwitchFilterTest(TestCase):
         # Verify that enough ports are available
         self.verify(len(self.dut_ports) >= 1, "Insufficient ports")
         localPort = self.tester.get_local_port(self.dut_ports[0])
+        self.used_dut_port_0 = self.dut_ports[0]
+        self.pf0_intf = self.dut.ports_info[self.used_dut_port_0]['intf']
         self.__tx_iface = self.tester.get_interface(localPort)
         self.pkt = Packet()
         self.testpmd_status = "close"
@@ -1042,6 +1044,7 @@ class CVLDCFSwitchFilterTest(TestCase):
         #get PF interface name
         self.pf0_intf = self.dut.ports_info[self.used_dut_port_0]['intf']
         out = self.dut.send_expect('ethtool -i %s' % self.pf0_intf, '#')
+        self.dut.send_expect('ethtool --set-priv-flags {} vf-vlan-prune-disable on'.format(self.pf0_intf), '#')
         #generate 4 VFs on PF
         self.dut.generate_sriov_vfs_by_port(self.used_dut_port_0, 4, driver=driver)
         self.sriov_vfs_port_0 = self.dut.ports_info[self.used_dut_port_0]['vfs_port']
@@ -1877,4 +1880,5 @@ class CVLDCFSwitchFilterTest(TestCase):
         """
         Run after each test suite.
         """
+        self.dut.send_expect('ethtool --set-priv-flags {} vf-vlan-prune-disable off'.format(self.pf0_intf), '#')
         self.dut.kill_all()
diff --git a/tests/TestSuite_cvl_dcf_switch_filter_pppoe.py b/tests/TestSuite_cvl_dcf_switch_filter_pppoe.py
index a3f09ec9..c51d14b1 100644
--- a/tests/TestSuite_cvl_dcf_switch_filter_pppoe.py
+++ b/tests/TestSuite_cvl_dcf_switch_filter_pppoe.py
@@ -521,6 +521,8 @@ class CVLDCFSwitchFilterPPPOETest(TestCase):
         # Verify that enough ports are available
         self.verify(len(self.dut_ports) >= 1, "Insufficient ports")
         localPort = self.tester.get_local_port(self.dut_ports[0])
+        self.used_dut_port_0 = self.dut_ports[0]
+        self.pf0_intf = self.dut.ports_info[self.used_dut_port_0]['intf']
         self.__tx_iface = self.tester.get_interface(localPort)
         self.pkt = Packet()
         self.testpmd_status = "close"
@@ -538,6 +540,7 @@ class CVLDCFSwitchFilterPPPOETest(TestCase):
         #get PF interface name
         self.pf0_intf = self.dut.ports_info[self.used_dut_port_0]['intf']
         out = self.dut.send_expect('ethtool -i %s' % self.pf0_intf, '#')
+        self.dut.send_expect('ethtool --set-priv-flags {} vf-vlan-prune-disable on'.format(self.pf0_intf), '#')
         #generate 4 VFs on PF
         self.dut.generate_sriov_vfs_by_port(self.used_dut_port_0, 4, driver=driver)
         self.sriov_vfs_port_0 = self.dut.ports_info[self.used_dut_port_0]['vfs_port']
@@ -913,4 +916,5 @@ class CVLDCFSwitchFilterPPPOETest(TestCase):
         """
         Run after each test suite.
         """
+        self.dut.send_expect('ethtool --set-priv-flags {} vf-vlan-prune-disable off'.format(self.pf0_intf), '#')
         self.dut.kill_all()
-- 
2.17.1


             reply	other threads:[~2021-04-30  8:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-30 16:57 Qin Sun [this message]
2021-05-06  4:07 ` Sun, QinX
2021-05-07  6:32   ` 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=20210430165714.19867-1-qinx.sun@intel.com \
    --to=qinx.sun@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).