From patchwork Tue Oct 27 07:40:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, XiX" X-Patchwork-Id: 82275 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AE224A04B5; Tue, 27 Oct 2020 08:38:48 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 70E5B2BAA; Tue, 27 Oct 2020 08:38:47 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 4301829C6 for ; Tue, 27 Oct 2020 08:38:46 +0100 (CET) IronPort-SDR: PQAwfGvNb0CG78jTQGBxzWNfsyGVBotd70GLSM+D/Br+HgIk8ew7XVlv6NmANVKmQ+ZCtKJzC7 K0vetUtR+OrA== X-IronPort-AV: E=McAfee;i="6000,8403,9786"; a="164540577" X-IronPort-AV: E=Sophos;i="5.77,423,1596524400"; d="scan'208";a="164540577" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2020 00:38:43 -0700 IronPort-SDR: TjSjge22tMZEYOd8QwMtZ2dCb0Egx/qZ7lWP2R6FUvtaaLc4Zvox1JSUm+zOzGSYBbz1egQG93 O3G2EQgoWvFw== X-IronPort-AV: E=Sophos;i="5.77,423,1596524400"; d="scan'208";a="535686837" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.182.150]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2020 00:38:42 -0700 From: xizhan4x To: dts@dpdk.org Cc: xizhan4x Date: Tue, 27 Oct 2020 15:40:25 +0800 Message-Id: <1603784425-8460-1-git-send-email-xix.zhang@intel.com> X-Mailer: git-send-email 2.4.0 Subject: [dts] [PATCH V2] tests/TestSuite_qinq_filter:insmod igb_uio create vf and add no_vec_eal_params 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" 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 Tested-by: Zhang, XiX --- 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