From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 803BC98 for ; Thu, 29 Dec 2016 07:38:30 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP; 28 Dec 2016 22:38:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,425,1477983600"; d="scan'208";a="1105507469" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 28 Dec 2016 22:38:28 -0800 From: "xu,huilong" To: dts@dpdk.org Cc: "xu,huilong" Date: Thu, 29 Dec 2016 14:39:35 +0800 Message-Id: <1482993575-21261-1-git-send-email-huilongx.xu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [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: Thu, 29 Dec 2016 06:38:30 -0000 dpdk ixgbe/i40e/fm10k update rx/tx model alrady. so need update rx model test 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 067590b..5f10c8b 100644 --- a/framework/project_dpdk.py +++ b/framework/project_dpdk.py @@ -132,26 +132,30 @@ class DPDKdut(Dut): 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] = self.target.split('-') mode = load_global_setting(DPDK_RXMODE_SETTING) if mode == 'scalar': - self.send_expect("sed -i -e 's/CONFIG_RTE_IXGBE_INC_VECTOR=.*$/" - + "CONFIG_RTE_IXGBE_INC_VECTOR=n/' config/common_%s" % env, "# ", 30) - self.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLOC=.*$/" - + "CONFIG_RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLOC=y/' config/common_%s" % env, "# ", 30) + self.send_expect("sed -i -e 's/CONFIG_RTE_I40E_INC_VECTOR=.*$/" + + "CONFIG_RTE_I40E_INC_VECTOR=n/' config/common_base", "# ", 30) + self.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC=.*$/" + + "CONFIG_RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC=y/' config/common_base", "# ", 30) if mode == 'full': + self.send_expect("sed -i -e 's/CONFIG_RTE_I40E_INC_VECTOR=.*$/" + + "CONFIG_RTE_I40E_INC_VECTOR=n/' config/common_base", "# ", 30) + self.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC=.*$/" + + "CONFIG_RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC=n/' config/common_base", "# ", 30) + if mode == 'novector': self.send_expect("sed -i -e 's/CONFIG_RTE_IXGBE_INC_VECTOR=.*$/" - + "CONFIG_RTE_IXGBE_INC_VECTOR=n/' config/common_%s" % env, "# ", 30) - self.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLOC=.*$/" - + "CONFIG_RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLOC=n/' config/common_%s" % env, "# ", 30) - if mode == 'vector': - self.send_expect("sed -i -e 's/CONFIG_RTE_IXGBE_INC_VECTOR=.*$/" - + "CONFIG_RTE_IXGBE_INC_VECTOR=y/' config/common_%s" % env, "# ", 30) - self.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLOC=.*$/" - + "CONFIG_RTE_LIBRTE_IXGBE_RX_ALLOW_BULK_ALLOC=y/' config/common_%s" % env, "# ", 30) + + "CONFIG_RTE_IXGBE_INC_VECTOR=n/' config/common_base", "# ", 30) + self.send_expect("sed -i -e 's/CONFIG_RTE_I40E_INC_VECTOR=.*$/" + + "CONFIG_RTE_I40E_INC_VECTOR=n/' config/common_base", "# ", 30) + self.send_expect("sed -i -e 's/CONFIG_RTE_FM10K_INC_VECTOR=.*$/" + + "CONFIG_RTE_FM10K_INC_VECTOR=n/' config/common_base", "# ", 30) def set_package(self, pkg_name="", patch_list=[]): self.package = pkg_name -- 1.9.3