From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id C23F82C0B for ; Mon, 21 Mar 2016 11:34:16 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP; 21 Mar 2016 03:34:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,371,1455004800"; d="scan'208";a="928488873" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga001.fm.intel.com with ESMTP; 21 Mar 2016 03:34:14 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id u2LAYCmE013063; Mon, 21 Mar 2016 18:34:12 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id u2LAYAZm016518; Mon, 21 Mar 2016 18:34:12 +0800 Received: (from ypei@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id u2LAYAQh016514; Mon, 21 Mar 2016 18:34:10 +0800 From: Yulong Pei To: dts@dpdk.org Cc: Yulong Pei Date: Mon, 21 Mar 2016 18:34:08 +0800 Message-Id: <1458556448-16483-1-git-send-email-yulong.pei@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] tests: add packet rxtx test case for dpdk pf and dpdk vf 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, 21 Mar 2016 10:34:17 -0000 Signed-off-by: Yulong Pei --- tests/TestSuite_vf_packet_rxtx.py | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_vf_packet_rxtx.py b/tests/TestSuite_vf_packet_rxtx.py index a632a44..599bc8d 100644 --- a/tests/TestSuite_vf_packet_rxtx.py +++ b/tests/TestSuite_vf_packet_rxtx.py @@ -100,11 +100,13 @@ class TestVfPacketRxtx(TestCase): self.setup_2pf_2vf_1vm_env_flag = 0 -######1. test case for kernel pf and dpdk vf 2pf_2vf_1vm scenario packet rx tx. - def test_kernel_2pf_2vf_1vm(self): + def packet_rx_tx(self, driver='default'): - self.setup_2pf_2vf_1vm_env(driver='') + if driver == 'igb_uio': + self.setup_2pf_2vf_1vm_env(driver='igb_uio') + else: + self.setup_2pf_2vf_1vm_env(driver='') self.vm0_dut_ports = self.vm_dut_0.get_ports('any') port_id_0 = 0 @@ -133,6 +135,17 @@ class TestVfPacketRxtx(TestCase): result = self.tester.check_random_pkts(tgen_ports, allow_miss=False, params=pkt_param) self.verify(result != False, "VF0 failed to forward packets to VF1") + +######1. test case for kernel pf and dpdk vf 2pf_2vf_1vm scenario packet rx tx. + def test_kernel_2pf_2vf_1vm(self): + + self.packet_rx_tx(driver='') + +######2. test case for dpdk pf and dpdk vf 2pf_2vf_1vm scenario packet rx tx. + def test_dpdk_2pf_2vf_1vm(self): + + self.packet_rx_tx(driver='igb_uio') + def setup_3vf_2vm_env(self, driver='default'): self.used_dut_port = self.dut_ports[0] -- 2.1.0