test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1 1/2] tests/kernelpf_iavf: modify script to adapt the intree kernel driver
@ 2023-01-30 11:12 Song Jiale
  2023-01-30 11:12 ` [dts] [PATCH V1 2/2] test_plans/kernelpf_iavf: adapt to " Song Jiale
  0 siblings, 1 reply; 3+ messages in thread
From: Song Jiale @ 2023-01-30 11:12 UTC (permalink / raw)
  To: dts; +Cc: Song Jiale

modify the script to adapt to the situation that the kernel driver cannot set
"vf-vlan-running".

Signed-off-by: Song Jiale <songx.jiale@intel.com>
---
 tests/TestSuite_kernelpf_iavf.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py
index 5e955feb..86c12d85 100644
--- a/tests/TestSuite_kernelpf_iavf.py
+++ b/tests/TestSuite_kernelpf_iavf.py
@@ -869,7 +869,10 @@ class TestKernelpfIavf(TestCase):
         self.check_vlan_offload(vlan_type="filter", stats="on")
         out = self.send_pkts_getouput(self.tester_intf, pkt_list1)
         receive_pkt = re.findall("dst=%s" % self.vf_mac, out)
-        self.verify(len(receive_pkt) == 0, "Failed error received vlan packet!")
+        if self.default_stats:
+            self.verify(len(receive_pkt) == 0, "Failed error received vlan packet!")
+        else:
+            self.verify(len(receive_pkt) == 2, "Failed error received vlan packet!")
 
         self.vm_testpmd.execute_cmd("rx_vlan add 1 0")
         self.start_tcpdump(self.tester_intf)
@@ -887,7 +890,10 @@ class TestKernelpfIavf(TestCase):
         self.vm_testpmd.execute_cmd("rx_vlan rm 1 0")
         out = self.send_pkts_getouput(self.tester_intf, pkt_list1)
         receive_pkt = re.findall("dst=%s" % self.vf_mac, out)
-        self.verify(len(receive_pkt) == 0, "Failed error received vlan packet!")
+        if self.default_stats:
+            self.verify(len(receive_pkt) == 0, "Failed error received vlan packet!")
+        else:
+            self.verify(len(receive_pkt) == 2, "Failed error received vlan packet!")
 
     @check_supported_nic(ice_nic)
     def test_iavf_dual_vlan_strip(self):
-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-07  3:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-30 11:12 [dts] [PATCH V1 1/2] tests/kernelpf_iavf: modify script to adapt the intree kernel driver Song Jiale
2023-01-30 11:12 ` [dts] [PATCH V1 2/2] test_plans/kernelpf_iavf: adapt to " Song Jiale
2023-03-07  3:49   ` lijuan.tu

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).