test suite reviews and discussions
 help / color / mirror / Atom feed
From: lingwei <weix.ling@intel.com>
To: dts@dpdk.org
Cc: lingwei <weix.ling@intel.com>
Subject: [dts] [PATCH V1 3/3] tests/l3fwd_base: support columbiaville_25gx2 and set-ice-16bytes when build dpdk
Date: Wed, 25 Nov 2020 19:39:55 +0800	[thread overview]
Message-ID: <20201125113955.32880-4-weix.ling@intel.com> (raw)
In-Reply-To: <20201125113955.32880-1-weix.ling@intel.com>

support columbiaville_25gx2 and set-ice-16bytes when build dpdk

Signed-off-by: lingwei <weix.ling@intel.com>
---
 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


      parent reply	other threads:[~2020-11-25  3:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-25 11:39 [dts] [PATCH V1 0/3] vf_l3fwd_kernelpf and vf_l3fwd support columbiaville_25gx2 lingwei
2020-11-25  3:46 ` Ling, WeiX
2020-11-25 11:39 ` [dts] [PATCH V1 1/3] conf/vf_l3fwd.cfg: support columbiaville_25gx2 columbiaville_25g columbiaville_100g and modify fortville25g to fortville_25g lingwei
2020-11-25 11:39 ` [dts] [PATCH V1 2/3] tests/vf_l3fwd_kernelpf: support columbiaville_25gx2 lingwei
2020-11-25 11:39 ` lingwei [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201125113955.32880-4-weix.ling@intel.com \
    --to=weix.ling@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).