From: "zhao,meijuan" <meijuanx.zhao@intel.com>
To: dts@dpdk.org
Cc: "zhao,meijuan" <meijuanx.zhao@intel.com>
Subject: [dts] [PATCH V1] tests/sriov kvm: add vlan strip
Date: Mon, 28 May 2018 17:08:18 +0800 [thread overview]
Message-ID: <1527498498-29051-1-git-send-email-meijuanx.zhao@intel.com> (raw)
before dpdk18.02, testpmd default vlan strip value is enable,
test vlan mirror need enable vlan strip
Signed-off-by: zhao,meijuan <meijuanx.zhao@intel.com>
---
tests/TestSuite_sriov_kvm.py | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/tests/TestSuite_sriov_kvm.py b/tests/TestSuite_sriov_kvm.py
index ee8d555..1526d4f 100644
--- a/tests/TestSuite_sriov_kvm.py
+++ b/tests/TestSuite_sriov_kvm.py
@@ -773,6 +773,8 @@ class TestSriovKvm(TestCase):
self.setup_2vm_2vf_env()
self.setup_two_vm_common_prerequisite()
+ self.vm1_testpmd.execute_cmd('vlan set strip on 0')
+
port_id_0 = 0
vlan_id = 0
vf_mask = '0x1'
@@ -799,12 +801,17 @@ class TestSriovKvm(TestCase):
vm1_ret_stats['TX-packets'] == packet_num,
"Vlan mirror failed between VM0 and VM1!")
+ self.vm1_testpmd.execute_cmd('vlan set strip off 0')
+
self.reset_port_mirror_rule(port_id_0, rule_id)
def test_two_vms_vlan_and_pool_mirror(self):
self.setup_2vm_2vf_env()
self.setup_two_vm_common_prerequisite()
+ self.vm0_testpmd.execute_cmd('vlan set strip on 0')
+ self.vm1_testpmd.execute_cmd('vlan set strip on 0')
+
port_id_0 = 0
vlan_id = 3
vf_mask = '0x2'
@@ -846,6 +853,9 @@ class TestSriovKvm(TestCase):
self.verify(self.vm0_testpmd.check_tx_bytes(vm0_ret_stats['RX-packets'], 10 * packet_num),
"Vlan mirror failed between VM0 and VM1 when set vlan and pool mirror!")
+ self.vm0_testpmd.execute_cmd('vlan set strip off 0')
+ self.vm1_testpmd.execute_cmd('vlan set strip off 0')
+
self.reset_port_all_mirror_rule(port_id_0)
def test_two_vms_uplink_and_downlink_mirror(self):
@@ -900,6 +910,9 @@ class TestSriovKvm(TestCase):
self.setup_2vm_2vf_env()
self.setup_two_vm_common_prerequisite()
+ self.vm0_testpmd.execute_cmd('vlan set strip on 0')
+ self.vm1_testpmd.execute_cmd('vlan set strip on 0')
+
self.vm0_testpmd.execute_cmd('stop')
self.vm1_testpmd.execute_cmd('stop')
@@ -978,6 +991,9 @@ class TestSriovKvm(TestCase):
"Vlan and downlink mirror failed between VM0 and VM1 " +
"when set vlan, pool, uplink and downlink mirror!")
+ self.vm0_testpmd.execute_cmd('vlan set strip off 0')
+ self.vm1_testpmd.execute_cmd('vlan set strip off 0')
+
self.reset_port_all_mirror_rule(port_id_0)
def test_two_vms_add_multi_exact_mac_on_vf(self):
--
1.9.3
next reply other threads:[~2018-05-28 9:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-28 9:08 zhao,meijuan [this message]
2018-06-12 8:44 [dts] [PATCH V1] tests/sriov kvm:add " zhao,meijuan
2018-06-12 9:09 ` Liu, Yong
2018-07-03 8:20 [dts] [PATCH V1] tests/sriov kvm: add " zhao,meijuan
2018-07-03 16:46 ` Liu, Yong
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=1527498498-29051-1-git-send-email-meijuanx.zhao@intel.com \
--to=meijuanx.zhao@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).