test suite reviews and discussions
 help / color / mirror / Atom feed
From: "xu,huilong" <huilongx.xu@intel.com>
To: dts@dpdk.org
Cc: "xu,huilong" <huilongx.xu@intel.com>
Subject: [dts] [PATCH V1] update rxmode test config
Date: Thu, 29 Dec 2016 14:39:35 +0800	[thread overview]
Message-ID: <1482993575-21261-1-git-send-email-huilongx.xu@intel.com> (raw)

dpdk ixgbe/i40e/fm10k update rx/tx model alrady. so need update rx model test config

Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
 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

             reply	other threads:[~2016-12-29  6:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-29  6:39 xu,huilong [this message]
2017-01-04  2:15 ` Liu, Yong

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=1482993575-21261-1-git-send-email-huilongx.xu@intel.com \
    --to=huilongx.xu@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).