From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 5958A1B88D for ; Fri, 9 Feb 2018 08:53:36 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Feb 2018 23:53:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,482,1511856000"; d="scan'208";a="33358340" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by orsmga002.jf.intel.com with ESMTP; 08 Feb 2018 23:53:33 -0800 From: "zhao,meijuan" To: dts@dpdk.org Cc: "zhao,meijuan" Date: Fri, 9 Feb 2018 15:54:46 +0800 Message-Id: <1518162886-50377-1-git-send-email-meijuanx.zhao@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] test/vf_daemon fix some vlan and queue issue 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: Fri, 09 Feb 2018 07:53:36 -0000 need enable vlan strip filter parameter,you can refer to dpdk 8b9bd0e, need change pkt count to make queue drop,you can refer to dpdk bd8f10f Signed-off-by: zhao,meijuan --- tests/TestSuite_vf_daemon.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_vf_daemon.py b/tests/TestSuite_vf_daemon.py index 840f218..e84f427 100644 --- a/tests/TestSuite_vf_daemon.py +++ b/tests/TestSuite_vf_daemon.py @@ -31,8 +31,8 @@ class Testvf_daemon(TestCase): self.setup_vm_env() def check_vf_link_status(self): - self.dut_testpmd.start_testpmd("Default", "--port-topology=chained") - self.vm0_testpmd.start_testpmd(VM_CORES_MASK, '--port-topology=chained') + self.dut_testpmd.start_testpmd("Default", "--port-topology=chained --enable-hw-vlan-filter") + self.vm0_testpmd.start_testpmd(VM_CORES_MASK, '--port-topology=chained --enable-hw-vlan-strip --enable-hw-vlan-filter') for i in range(10): out = self.vm0_testpmd.execute_cmd('show port info 0') print out @@ -458,9 +458,9 @@ class Testvf_daemon(TestCase): self.dut_testpmd.execute_cmd('set all queues drop 0 off') self.vf0_mac = self.vm0_testpmd.get_port_mac(0) self.vf1_mac = self.vm1_testpmd.get_port_mac(0) - out = self.send_and_pmdout(self.vf1_mac, 0, 64, 200) + out = self.send_and_pmdout(self.vf1_mac, 0, 64, 2000) out = self.vm1_testpmd.execute_cmd('show port stats 0') - self.verify("RX-packets: 127" in out, + self.verify("RX-packets: 1023" in out, "Failed to let vf1 full of queues!!!") out = self.send_and_pmdout(self.vf0_mac, 0, 64, 20) out = self.vm0_testpmd.execute_cmd('show port stats 0') -- 1.9.3