From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id CD53DA0526; Wed, 25 Nov 2020 04:45:36 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C07D1C950; Wed, 25 Nov 2020 04:45:35 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 66933C93E for ; Wed, 25 Nov 2020 04:45:34 +0100 (CET) IronPort-SDR: cJRxpvzzl+v37OR5hbJimFp6DdpIb+lE2D9AvX2Y68zy3t80ulgFleNt+gK4ObpJJ1d9I+Sksm BXJY/NnL/b9Q== X-IronPort-AV: E=McAfee;i="6000,8403,9815"; a="190194950" X-IronPort-AV: E=Sophos;i="5.78,368,1599548400"; d="scan'208";a="190194950" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2020 19:45:31 -0800 IronPort-SDR: lp8EEEQa3MhXv+9dscvtpvUsEldRqPyt+mIUBC5FMCYImRo8LNCUOufOnmkr1BjzZPr1VERTrO LE6EvvV/waUw== X-IronPort-AV: E=Sophos;i="5.78,368,1599548400"; d="scan'208";a="547108787" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2020 19:45:30 -0800 From: lingwei To: dts@dpdk.org Cc: lingwei Date: Wed, 25 Nov 2020 19:39:55 +0800 Message-Id: <20201125113955.32880-4-weix.ling@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201125113955.32880-1-weix.ling@intel.com> References: <20201125113955.32880-1-weix.ling@intel.com> Subject: [dts] [PATCH V1 3/3] tests/l3fwd_base: support columbiaville_25gx2 and set-ice-16bytes when build dpdk 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" support columbiaville_25gx2 and set-ice-16bytes when build dpdk Signed-off-by: lingwei --- tests/l3fwd_base.py | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/tests/l3fwd_base.py b/tests/l3fwd_base.py index 94b68347..5f1f9092 100644 --- a/tests/l3fwd_base.py +++ b/tests/l3fwd_base.py @@ -543,24 +543,18 @@ class L3fwdBase(object): # Update config file and rebuild to get best perf on FVL if self.__mode is SUITE_TYPE.PF: if self.nic in ["fortville_spirit", "fortville_eagle", "fortville_25g"]: - self.d_con( - ("sed -i -e 's/" - "CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=n/" - "CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=y/' " - "./config/common_base")) self.dut.set_build_options({'RTE_LIBRTE_I40E_16BYTE_RX_DESC': 'y'}) - self.dut.build_install_dpdk(self.target) + elif self.nic in ["columbiaville_100g", "columbiaville_25g"]: + self.dut.set_build_options({'RTE_LIBRTE_ICE_16BYTE_RX_DESC': 'y'}) + self.dut.build_install_dpdk(self.target) def __restore_compilation(self): if self.__mode is SUITE_TYPE.PF: if self.nic in ["fortville_spirit", "fortville_eagle", "fortville_25g"]: - self.d_con( - ("sed -i -e 's/" - "CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=y/" - "CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=n/' " - "./config/common_base")) - self.dut.set_build_options({'RTE_LIBRTE_I40E_16BYTE_RX_DESC': 'n'}) - self.dut.build_install_dpdk(self.target) + self.dut.set_build_options({'RTE_LIBRTE_ICE_16BYTE_RX_DESC': 'n'}) + elif self.nic in ["columbiaville_100g", "columbiaville_25g"]: + self.dut.set_build_options({'RTE_LIBRTE_ICE_16BYTE_RX_DESC': 'n'}) + self.dut.build_install_dpdk(self.target) def __preset_compilation(self): # Update config file and rebuild to get best perf on FVL @@ -677,7 +671,7 @@ class L3fwdBase(object): 'whitelist': self.__l3fwd_white_list if self.__l3fwd_white_list else '', 'port_mask': utils.create_mask(self.__valports), 'config': config, }) - if self.nic in ["niantic", "columbiaville_100g", "columbiaville_25g"]: + if self.nic in ["niantic", "columbiaville_100g", "columbiaville_25g", "columbiaville_25gx2"]: command_line += " --parse-ptype" if frame_size > 1518: command_line += " --enable-jumbo --max-pkt-len %d" % frame_size -- 2.17.1