test suite reviews and discussions
 help / color / mirror / Atom feed
From: xizhan4x <xix.zhang@intel.com>
To: dts@dpdk.org
Cc: xizhan4x <xix.zhang@intel.com>
Subject: [dts] [PATCH V2] tests/TestSuite_qinq_filter:insmod igb_uio create vf and add no_vec_eal_params
Date: Tue, 27 Oct 2020 15:40:25 +0800	[thread overview]
Message-ID: <1603784425-8460-1-git-send-email-xix.zhang@intel.com> (raw)

v1:insmod igb_uio create vf and add no_vec_eal_params
v2:update EAL parameter force-max-simd-bitwidth=64  notes

Signed-off-by: xizhan4x <xix.zhang@intel.com>
---
 tests/TestSuite_qinq_filter.py | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/tests/TestSuite_qinq_filter.py b/tests/TestSuite_qinq_filter.py
index 91a2d7a..0d90627 100644
--- a/tests/TestSuite_qinq_filter.py
+++ b/tests/TestSuite_qinq_filter.py
@@ -72,8 +72,6 @@ class TestQinqFilter(TestCase):
         
         cores = self.dut.get_core_list('1S/2C/1T')
         self.coreMask = utils.create_mask(cores)
-        self.dut.set_build_options({'RTE_LIBRTE_I40E_INC_VECTOR': 'n'})
-        self.dut.build_install_dpdk(self.target)
         self.path=self.dut.apps_name['test-pmd']
         
     def vlan_send_packet(self, vlans):
@@ -142,10 +140,11 @@ class TestQinqFilter(TestCase):
         """
         Enable receipt of dual VLAN packets
         """
-        
-        self.dut.send_expect(r'%s -c %s -n 4 -- -i \
+        #add a EAL parameter --force-max-simd-bitwidth=64,it disable all vector code paths.
+        no_vec_eal_params='--force-max-simd-bitwidth=64'
+        self.dut.send_expect(r'%s -c %s -n 4 %s -- -i \
                                --portmask=%s --port-topology=loop \
-                               --rxq=4 --txq=4  --disable-rss' % (self.path, self.coreMask, self.portMask),
+                               --rxq=4 --txq=4  --disable-rss' % (self.path, self.coreMask, no_vec_eal_params, self.portMask),
                                "testpmd> ", 30)
         self.dut.send_expect("vlan set extend on %s" % dutRxPortId, "testpmd> ")
         self.dut.send_expect("vlan set strip on %s" % dutRxPortId, "testpmd> ")
@@ -195,6 +194,7 @@ class TestQinqFilter(TestCase):
         """
         qinq filter packet received by assign VF queues
         """
+        self.dut.setup_modules(self.target,'igb_uio',None)
         self.config_vfs(dutRxPortId, 2)
         vf_list = self.dut.ports_info[dutRxPortId]['sriov_vfs_pci']
         self.verify(len(vf_list) == 2, 'config 2 vf failed: %s' % str(vf_list))
@@ -348,5 +348,4 @@ class TestQinqFilter(TestCase):
         """
         Run after each test suite.
         """
-        self.dut.set_build_options({'RTE_LIBRTE_I40E_INC_VECTOR': 'y'})
-        self.dut.build_install_dpdk(self.target)
+        pass
-- 
2.4.0


             reply	other threads:[~2020-10-27  7:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-27  7:40 xizhan4x [this message]
2020-10-27  7:39 ` Zhang, XiX
2020-10-29  8:05 ` Ma, LihongX
2020-11-03  2:20   ` Zhang, XiX

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=1603784425-8460-1-git-send-email-xix.zhang@intel.com \
    --to=xix.zhang@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).