From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id F32B42C54 for ; Mon, 28 May 2018 11:07:03 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 May 2018 02:07:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,451,1520924400"; d="scan'208";a="59133471" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 28 May 2018 02:07:02 -0700 From: "zhao,meijuan" To: dts@dpdk.org Cc: "zhao,meijuan" Date: Mon, 28 May 2018 17:08:18 +0800 Message-Id: <1527498498-29051-1-git-send-email-meijuanx.zhao@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests/sriov kvm: add vlan strip X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 May 2018 09:07:04 -0000 before dpdk18.02, testpmd default vlan strip value is enable, test vlan mirror need enable vlan strip Signed-off-by: zhao,meijuan --- 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