From: Song Jiale <songx.jiale@intel.com>
To: dts@dpdk.org
Cc: Song Jiale <songx.jiale@intel.com>
Subject: [dts] [PATCH V1 1/2] tests/kernelpf_iavf: modify script to adapt the intree kernel driver
Date: Mon, 30 Jan 2023 11:12:25 +0000 [thread overview]
Message-ID: <20230130111226.4004219-1-songx.jiale@intel.com> (raw)
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
next reply other threads:[~2023-01-30 3:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-30 11:12 Song Jiale [this message]
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
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=20230130111226.4004219-1-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).