From: Jiale Song <songx.jiale@intel.com>
To: dts@dpdk.org
Cc: Jiale Song <songx.jiale@intel.com>
Subject: [dts] [PATCH V1 2/4] tests/kernelpf_iavf: add testing steps to test vlan priority value
Date: Mon, 17 Apr 2023 17:41:53 +0000 [thread overview]
Message-ID: <20230417174155.146540-3-songx.jiale@intel.com> (raw)
In-Reply-To: <20230417174155.146540-1-songx.jiale@intel.com>
1. add testing steps to test vlan priority value.
2. modify test scripts to support i40e nic.
Signed-off-by: Jiale Song <songx.jiale@intel.com>
---
tests/TestSuite_kernelpf_iavf.py | 24 ++++++++++++++----------
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py
index 6b6c573c..c69b8748 100644
--- a/tests/TestSuite_kernelpf_iavf.py
+++ b/tests/TestSuite_kernelpf_iavf.py
@@ -128,10 +128,9 @@ class TestKernelpfIavf(TestCase):
self.verify(res, "%s link status is down" % self.host_intf)
out = self.dut.send_expect("ethtool %s" % self.host_intf, "#")
self.speed = int(re.findall("Speed: (\d*)", out)[0]) // 1000
- if self.is_eth_series_nic(800):
- self.dut.send_expect(
- "ip link set %s vf 0 spoofchk off" % (self.host_intf), "# "
- )
+ self.dut.send_expect(
+ "ip link set %s vf 0 spoofchk off" % (self.host_intf), "# "
+ )
if self.running_case == "test_vf_multicast":
self.dut.send_expect(
"ethtool --set-priv-flags %s vf-true-promisc-support on"
@@ -849,14 +848,13 @@ class TestKernelpfIavf(TestCase):
packets = len(re.findall("received 1 packets", out))
self.verify(packets == 10, "Not receive expected packet")
- @check_supported_nic(ice_nic)
def test_iavf_dual_vlan_filter(self):
"""
Test case: IAVF DUAL VLAN filtering
"""
self.skip_case(not self.dcf_mode, "the case not support dcf mode")
pkt_list1 = [
- 'Ether(dst="%s",type=0x8100)/Dot1Q(vlan=1,type=0x8100)/Dot1Q(vlan=2,type=0x0800)/IP(src="196.222.232.221")/("X"*480)'
+ 'Ether(dst="%s",type=0x8100)/Dot1Q(vlan=1,type=0x8100,prio=1)/Dot1Q(vlan=2,type=0x0800,prio=2)/IP(src="196.222.232.221")/("X"*480)'
% self.vf_mac,
'Ether(dst="%s",type=0x8100)/Dot1Q(vlan=1,type=0x0800)/IP(src="196.222.232.221")/("X"*480)'
% self.vf_mac,
@@ -888,8 +886,16 @@ class TestKernelpfIavf(TestCase):
tcpdump_out = self.get_tcpdump_package()
receive_pkt = re.findall("dst=%s" % self.vf_mac, out)
self.verify(len(receive_pkt) == 2, "Failed error received vlan packet!")
- tester_pkt = re.findall("vlan \d+", tcpdump_out)
- self.verify(len(tester_pkt) == 6, "Failed pass received vlan packet!")
+ tester_pkt = re.findall("vlan\s+\d+, p\s+\d+", tcpdump_out)
+ vlan_prio_1 = re.findall("vlan\s+\d+, p\s+1", tcpdump_out)
+ vlan_prio_2 = re.findall("vlan\s+\d+, p\s+2", tcpdump_out)
+ self.verify(len(tester_pkt) == 6, "Received incorrect vlan packet!")
+ self.verify(
+ len(vlan_prio_1) == 2, "Received incorrect priority 1 vlan packet!!"
+ )
+ self.verify(
+ len(vlan_prio_2) == 2, "Received incorrect priority 2 vlan packet!!!"
+ )
out = self.send_pkts_getouput(self.tester_intf, pkt_list2)
receive_pkt = re.findall("dst=%s" % self.vf_mac, out)
@@ -903,7 +909,6 @@ class TestKernelpfIavf(TestCase):
else:
self.verify(len(receive_pkt) == 2, "Failed error received vlan packet!")
- @check_supported_nic(ice_nic)
def test_iavf_dual_vlan_strip(self):
"""
Test case: IAVF DUAL VLAN header stripping
@@ -1047,7 +1052,6 @@ class TestKernelpfIavf(TestCase):
return []
return value_list
- @check_supported_nic(ice_nic)
def test_iavf_dual_vlan_insert(self):
"""
Test case: IAVF DUAL VLAN header insertion
--
2.25.1
next prev parent reply other threads:[~2023-04-17 9:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-17 17:41 [dts] [PATCH V1 0/4] add case " Jiale Song
2023-04-17 17:41 ` [dts] [PATCH V1 1/4] test_plans/kernelpf_iavf: add testing steps " Jiale Song
2023-04-17 17:41 ` Jiale Song [this message]
2023-04-17 17:41 ` [dts] [PATCH V1 3/4] test_plans/dual_vlan: add a case " Jiale Song
2023-04-17 17:41 ` [dts] [PATCH V1 4/4] tests/dual_vlan: " Jiale Song
2023-04-27 7:30 ` Peng, Yuan
2023-04-27 7:38 ` 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=20230417174155.146540-3-songx.jiale@intel.com \
--to=songx.jiale@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).