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 D1007590F for ; Fri, 14 Oct 2016 16:05:15 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP; 14 Oct 2016 07:05:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,493,1473145200"; d="scan'208";a="1053820721" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga001.fm.intel.com with ESMTP; 14 Oct 2016 07:05:15 -0700 Received: from fmsmsx117.amr.corp.intel.com (10.18.116.17) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 14 Oct 2016 07:05:14 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx117.amr.corp.intel.com (10.18.116.17) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 14 Oct 2016 07:05:14 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.139]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.2]) with mapi id 14.03.0248.002; Fri, 14 Oct 2016 22:05:12 +0800 From: "Liu, Yong" To: "Peng, Yuan" , "dts@dpdk.org" CC: "Peng, Yuan" Thread-Topic: [dts] [PATCH 2/2] tests add TestSuite_VEB Thread-Index: AQHSJiIM2hO0RWFfoUuXb3dxEEyKiKCn+3zw Date: Fri, 14 Oct 2016 14:05:11 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E60300A48@SHSMSX103.ccr.corp.intel.com> References: <1476453052-19505-1-git-send-email-yuan.peng@intel.com> <1476453052-19505-2-git-send-email-yuan.peng@intel.com> In-Reply-To: <1476453052-19505-2-git-send-email-yuan.peng@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzJlNGYwYWUtYWJiNy00M2NmLWFiYmItMmM0YjAwYjkwMThkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IkNFZHFETEMrdVB2MWRSV3dBRkFuK0xZRE5ibjQzcFpleDlSVmpYdW5oUGM9In0= x-ctpclassification: CTP_IC x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH 2/2] tests add TestSuite_VEB 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, 14 Oct 2016 14:05:16 -0000 This patch look like small patch for the first one. You can just send out t= he final version. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Yuan Peng > Sent: Friday, October 14, 2016 8:51 AM > To: dts@dpdk.org > Cc: Peng, Yuan > Subject: [dts] [PATCH 2/2] tests add TestSuite_VEB >=20 > From: pengyuan >=20 > Signed-off-by: pengyuan >=20 > diff --git a/tests/TestSuite_VEB.py b/tests/TestSuite_VEB.py > index 6296ff1..9b97a97 100644 > --- a/tests/TestSuite_VEB.py > +++ b/tests/TestSuite_VEB.py > @@ -145,17 +145,8 @@ class TestVEBSwitching(TestCase): > "NIC Unsupported: " + str(self.nic)) > self.dut_ports =3D self.dut.get_ports(self.nic) > self.verify(len(self.dut_ports) >=3D 1, "Insufficient ports") > - # self.rx_port =3D self.dut_ports[0] > - # self.tx_port =3D self.dut_ports[0] > - > - # cores =3D self.dut.get_core_list("1S/2C/1T") > - # self.coremask =3D dts.create_mask(cores) > - > - # self.port_mask =3D dts.create_mask([self.rx_port, self.tx_port= ]) > self.session_secondary =3D self.dut.new_session() > self.session_third =3D self.dut.new_session() > - # self.pmdout =3D PmdOutput(self.dut) > - # self.pmdout_session_secondary =3D > PmdOutput(self.session_secondary) >=20 > def set_up(self): > """ > @@ -206,8 +197,11 @@ class TestVEBSwitching(TestCase): >=20 > def destroy_1pf_ddriver_4vf_env(self): > self.session_third.send_expect("quit", "# ") > + time.sleep(2) > self.session_secondary.send_expect("quit", "# ") > + time.sleep(2) > self.dut.send_expect("quit", "# ") > + time.sleep(2) > self.dut.destroy_sriov_vfs_by_port(self.used_dut_port) > port =3D self.dut.ports_info[self.used_dut_port]['port'] > port.bind_driver() > @@ -252,8 +246,11 @@ class TestVEBSwitching(TestCase): >=20 > def destroy_1pf_ddriver_2vf_env(self): > self.session_third.send_expect("quit", "# ") > + time.sleep(2) > self.session_secondary.send_expect("quit", "# ") > + time.sleep(2) > self.dut.send_expect("quit", "# ") > + time.sleep(2) > self.dut.destroy_sriov_vfs_by_port(self.used_dut_port) > port =3D self.dut.ports_info[self.used_dut_port]['port'] > port.bind_driver() > @@ -273,7 +270,6 @@ class TestVEBSwitching(TestCase): > self.pf_mac_address =3D self.dut.get_mac_address(0) > self.pf_pci =3D self.dut.ports_info[self.used_dut_port]['pci'] > self.dut.send_expect("./tools/dpdk-devbind.py -s", "# ", 3) > - # self.dut.send_expect("echo 1 > > /sys/bus/pci/devices/%s/max_vfs" % self.pf_pci, "# ", 3) > self.dut.generate_sriov_vfs_by_port(self.used_dut_port, 1, > driver=3D'igb_uio') > self.sriov_vfs_port =3D > self.dut.ports_info[self.used_dut_port]['vfs_port'] > self.dut.send_expect("./tools/dpdk-devbind.py -s", "# ", 3) > @@ -301,7 +297,9 @@ class TestVEBSwitching(TestCase): > def destroy_1pf_ddriver_1vf_env(self): >=20 > self.session_secondary.send_expect("quit", "# ") > + time.sleep(2) > self.dut.send_expect("quit", "# ") > + time.sleep(2) > self.dut.destroy_sriov_vfs_by_port(self.used_dut_port) > port =3D self.dut.ports_info[self.used_dut_port]['port'] > port.bind_driver() > @@ -323,8 +321,6 @@ class TestVEBSwitching(TestCase): > self.pf_interface =3D > self.dut.ports_info[self.used_dut_port]['intf'] > self.dut.generate_sriov_vfs_by_port(self.used_dut_port, 2, > driver=3Ddriver) > self.sriov_vfs_port =3D > self.dut.ports_info[self.used_dut_port]['vfs_port'] > - #self.vf0_mac =3D "00:11:22:33:44:11" > - #self.vf1_mac =3D "00:11:22:33:44:12" > self.dut.send_expect("ip link set %s vf 0 mac %s" % > (self.pf_interface, self.vf0_mac), "# ", 3) > self.dut.send_expect("ip link set %s vf 1 mac %s" % > (self.pf_interface, self.vf1_mac), "# ", 3) >=20 > @@ -337,13 +333,7 @@ class TestVEBSwitching(TestCase): > time.sleep(1) > vf0_prop =3D {'opt_host': self.sriov_vfs_port[0].pci} > vf1_prop =3D {'opt_host': self.sriov_vfs_port[1].pci} > - > - # for port_id in self.dut_ports: > - # if port_id =3D=3D self.used_dut_port: > - # continue > - # port =3D self.dut.ports_info[port_id]['port'] > - # port.bind_driver() > - > + > self.setup_1pf_kdriver_2vf_env_flag =3D 1 > except Exception as e: > self.destroy_1pf_kdriver_2vf_env() > @@ -352,7 +342,9 @@ class TestVEBSwitching(TestCase): > def destroy_1pf_kdriver_2vf_env(self): >=20 > self.session_secondary.send_expect("quit", "# ") > + time.sleep(2) > self.dut.send_expect("quit", "# ") > + time.sleep(2) > self.dut.destroy_sriov_vfs_by_port(self.used_dut_port) > port =3D self.dut.ports_info[self.used_dut_port]['port'] > port.bind_driver() > @@ -470,7 +462,7 @@ class TestVEBSwitching(TestCase): > self.verify(vf0_tx_stats[0] !=3D 0, "no packet was sent by VF0") > self.verify((vf0_tx_stats[0] =3D=3D 1) and (vf1_rx_stats[0] =3D= =3D 1), > "VF1 didn't receive packets from VF0, the vlan filter doen't work") >=20 > - def test_VEB_switching_inter_pf_vf_MAC_switch(self): > + def test_VEB_switching_inter_vfs_pf_MAC_switch(self): > """ > DPDK PF, then create 1VF, PF in the host running dpdk testpmd, > send traffic from PF to VF1, ensure PF->VF1(let VF1 in promisc mode); sen= d > traffic from VF1 to PF, ensure VF1->PF can work. > """ > -- > 2.5.0