From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 3E0F3FE5 for ; Tue, 21 Feb 2017 07:23:35 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Feb 2017 22:23:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,188,1484035200"; d="scan'208";a="50607333" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by orsmga002.jf.intel.com with ESMTP; 20 Feb 2017 22:23:34 -0800 From: Lijuan Tu To: dts@dpdk.org Cc: Lijuan Tu Date: Tue, 21 Feb 2017 14:24:41 +0800 Message-Id: <1487658281-31664-1-git-send-email-lijuanx.a.tu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH]tests vf_vlan: fix vlan function check failure. 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: Tue, 21 Feb 2017 06:23:36 -0000 1. disable promisc in vlan suite Fortville vlan filter and promisc filter use the same switch. 2. change verified infomation DPDK changed vlan verbose 3. port should bind to default driver but not igb_uio Signed-off-by: Lijuan Tu --- tests/TestSuite_vf_vlan.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_vf_vlan.py b/tests/TestSuite_vf_vlan.py index 74930b0..1edf23d 100644 --- a/tests/TestSuite_vf_vlan.py +++ b/tests/TestSuite_vf_vlan.py @@ -134,7 +134,7 @@ class TestVfVlan(TestCase): port = self.dut.ports_info[self.used_dut_port_1]['port'] self.used_dut_port_1 = None - self.bind_nic_driver(self.dut_ports[:2], driver='igb_uio') + self.bind_nic_driver(self.dut_ports[:2], driver='default') self.env_done = False @@ -301,6 +301,7 @@ class TestVfVlan(TestCase): self.vm0_testpmd.execute_cmd('set verbose 1') self.vm0_testpmd.execute_cmd('vlan set strip on 0') self.vm0_testpmd.execute_cmd('vlan set filter on 0') + self.vm0_testpmd.execute_cmd("set promisc all off") self.vm0_testpmd.execute_cmd('start') # send packet without vlan @@ -376,6 +377,7 @@ class TestVfVlan(TestCase): vlan_hex = hex(rx_vlan) self.verify("VLAN tci=%s" % vlan_hex in out, "Failed to strip vlan packet!!!") + self.verify("PKT_RX_VLAN_STRIPPED" in out, "Failed to strip vlan packet!") self.vm0_testpmd.execute_cmd('vlan set strip off 0') @@ -389,7 +391,7 @@ class TestVfVlan(TestCase): vlan_hex in out, "Failed to disable strip vlan!!!") else: self.verify( - "VLAN tci=0x0" in out, "Failed to disable strip vlan!!!") + "PKT_RX_VLAN_STRIPPED" not in out, "Failed to disable strip vlan!!!") self.vm0_testpmd.quit() -- 1.9.3