From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 0D5882BFD for ; Tue, 22 Mar 2016 08:23:11 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 22 Mar 2016 00:23:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,376,1455004800"; d="scan'208";a="938951042" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by orsmga002.jf.intel.com with ESMTP; 22 Mar 2016 00:23:10 -0700 Message-ID: <56F0F314.4010804@intel.com> Date: Tue, 22 Mar 2016 15:24:04 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Yulong Pei , dts@dpdk.org References: <1458556448-16483-1-git-send-email-yulong.pei@intel.com> In-Reply-To: <1458556448-16483-1-git-send-email-yulong.pei@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [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: Tue, 22 Mar 2016 07:23:12 -0000 Applied. Thanks. On 03/21/2016 06:34 PM, Yulong Pei wrote: > 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]