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 9039237A8 for ; Thu, 29 Dec 2016 07:51:43 +0100 (CET) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP; 28 Dec 2016 22:51:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,425,1477983600"; d="scan'208";a="47687522" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga005.fm.intel.com with ESMTP; 28 Dec 2016 22:51:42 -0800 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 28 Dec 2016 22:51:42 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 28 Dec 2016 22:51:41 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.20]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.177]) with mapi id 14.03.0248.002; Thu, 29 Dec 2016 14:51:39 +0800 From: "Liu, Yong" To: "Yao, Lei A" , "dts@dpdk.org" CC: "Yao, Lei A" Thread-Topic: [dts] [PATCH V3] tests: add test for vhost/virtio loopback performance Thread-Index: AQHSYZG4ziustybRnEmakP3KB9EVaKEeeq6g Date: Thu, 29 Dec 2016 06:51:39 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E62D3515D@SHSMSX103.ccr.corp.intel.com> References: <1482988197-20248-1-git-send-email-lei.a.yao@intel.com> In-Reply-To: <1482988197-20248-1-git-send-email-lei.a.yao@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOGRhMWZiOTktNjdkMi00M2M5LWJiNmQtNTZkZWRiMDY2NDBjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IllCOFM4MVo2RUM0XC8wV0JSS015cmxWbm51S2k2YThyN1JzUzlWNmhRMkFzPSJ9 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 V3] tests: add test for vhost/virtio loopback performance 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: Thu, 29 Dec 2016 06:51:44 -0000 Lei, one comment remaining. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lei,yao > Sent: Thursday, December 29, 2016 1:10 PM > To: dts@dpdk.org > Cc: Yao, Lei A > Subject: [dts] [PATCH V3] tests: add test for vhost/virtio loopback > performance >=20 > From: lei yao >=20 > This test won't use qemu, but will use two testpmd thread to launch vhost= - > user and > virtio-user to simulate the qemu user case. >=20 > Signed-off-by: lei yao > --- > + # Get the default TX packet size of the testpmd > + file_path =3D "/root/dpdk/app/test-pmd/testpmd.h" > + fp =3D open(file_path, 'r') > + out =3D fp.read() > + search_result =3D re.search("TXONLY_DEF_PACKET_LEN\s*(\d*)", out= ) > + self.packet_length =3D search_result.group(1) > + We can't assume that dut and tester are using same server and DPDK folder m= aybe changed by input parameter. You can do the same thing by some code like below: out =3D self.dut.send_expect("cat app/test-pmd/testpmd.h |grep TXONLY_DEF_= PACKET_LEN", "# ") try: search_result =3D re.search("#define TXONLY_DEF_PACKET_LEN\s*(\d*)", out) self.packet_length =3D search_result.group(1) except: self.logger.error("Failed to capture default testpmd txonly packet length= ")