From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 552422BB9 for ; Wed, 4 Jan 2017 03:15:14 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP; 03 Jan 2017 18:15:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,458,1477983600"; d="scan'208";a="804848031" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by FMSMGA003.fm.intel.com with ESMTP; 03 Jan 2017 18:15:12 -0800 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 3 Jan 2017 18:15:12 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 3 Jan 2017 18:15:11 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.20]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.132]) with mapi id 14.03.0248.002; Wed, 4 Jan 2017 10:15:10 +0800 From: "Liu, Yong" To: "Xu, HuilongX" , "dts@dpdk.org" CC: "Xu, HuilongX" Thread-Topic: [dts] [PATCH V1] update rxmode test config Thread-Index: AQHSYZ417oSsV/FDYUya8/+Bajz7aaEnnWYw Date: Wed, 4 Jan 2017 02:15:09 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E62D3885C@SHSMSX103.ccr.corp.intel.com> References: <1482993575-21261-1-git-send-email-huilongx.xu@intel.com> In-Reply-To: <1482993575-21261-1-git-send-email-huilongx.xu@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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 V1] update rxmode test config 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: Wed, 04 Jan 2017 02:15:14 -0000 Thanks, applied with comment modified. -----Original Message----- From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xu,huilong Sent: Thursday, December 29, 2016 2:40 PM To: dts@dpdk.org Cc: Xu, HuilongX Subject: [dts] [PATCH V1] update rxmode test config dpdk ixgbe/i40e/fm10k update rx/tx model alrady. so need update rx model te= st config Signed-off-by: xu,huilong --- framework/project_dpdk.py | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py index 06= 7590b..5f10c8b 100644 --- a/framework/project_dpdk.py +++ b/framework/project_dpdk.py @@ -132,26 +132,30 @@ class DPDKdut(Dut): =20 def set_rxtx_mode(self): """ - Set default RX/TX PMD function, now only take effect on ixgbe. + Set default RX/TX PMD function, + only i40e support scalar/full RX/TX model. + ixgbe and fm10k only support vector and no vector model + all NIC default rx/tx model is vector PMD """ - [arch, machine, env, toolchain] =3D self.target.split('-') =20 mode =3D load_global_setting(DPDK_RXMODE_SETTING) if mode =3D=3D 'scalar': - self.send_expect("sed -i -e 's/CONFIG_RTE_IXGBE_INC_VECTOR=3D.= *$/" - + "CONFIG_RTE_IXGBE_INC_VECTOR=3Dn/' config/c= ommon_%s" % env, "# ", 30) - self.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_IXGBE_RX_ALLO= W_BULK_ALLOC=3D.*$/" - + "CONFIG_RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLO= C=3Dy/' config/common_%s" % env, "# ", 30) + self.send_expect("sed -i -e 's/CONFIG_RTE_I40E_INC_VECTOR=3D.*= $/" + + "CONFIG_RTE_I40E_INC_VECTOR=3Dn/' config/co= mmon_base", "# ", 30) + self.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_I40E_RX_ALLOW= _BULK_ALLOC=3D.*$/" + +=20 + "CONFIG_RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC=3Dy/' config/common_base",=20 + "# ", 30) if mode =3D=3D 'full': + self.send_expect("sed -i -e 's/CONFIG_RTE_I40E_INC_VECTOR=3D.*= $/" + + "CONFIG_RTE_I40E_INC_VECTOR=3Dn/' config/co= mmon_base", "# ", 30) + self.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_I40E_RX_ALLOW= _BULK_ALLOC=3D.*$/" + + "CONFIG_RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC= =3Dn/' config/common_base", "# ", 30) + if mode =3D=3D 'novector': self.send_expect("sed -i -e 's/CONFIG_RTE_IXGBE_INC_VECTOR=3D.= *$/" - + "CONFIG_RTE_IXGBE_INC_VECTOR=3Dn/' config/c= ommon_%s" % env, "# ", 30) - self.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_IXGBE_RX_ALLO= W_BULK_ALLOC=3D.*$/" - + "CONFIG_RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLO= C=3Dn/' config/common_%s" % env, "# ", 30) - if mode =3D=3D 'vector': - self.send_expect("sed -i -e 's/CONFIG_RTE_IXGBE_INC_VECTOR=3D.= *$/" - + "CONFIG_RTE_IXGBE_INC_VECTOR=3Dy/' config/c= ommon_%s" % env, "# ", 30) - self.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_IXGBE_RX_ALLO= W_BULK_ALLOC=3D.*$/" - + "CONFIG_RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLO= C=3Dy/' config/common_%s" % env, "# ", 30) + + "CONFIG_RTE_IXGBE_INC_VECTOR=3Dn/' config/c= ommon_base", "# ", 30) + self.send_expect("sed -i -e 's/CONFIG_RTE_I40E_INC_VECTOR=3D.*= $/" + + "CONFIG_RTE_I40E_INC_VECTOR=3Dn/' config/co= mmon_base", "# ", 30) + self.send_expect("sed -i -e 's/CONFIG_RTE_FM10K_INC_VECTOR=3D.= *$/" + + "CONFIG_RTE_FM10K_INC_VECTOR=3Dn/'=20 + config/common_base", "# ", 30) =20 def set_package(self, pkg_name=3D"", patch_list=3D[]): self.package =3D pkg_name -- 1.9.3