test suite reviews and discussions
 help / color / mirror / Atom feed
From: Xiang An <xiangx.an@intel.com>
To: dts@dpdk.org
Cc: xiangx.an@intel.com
Subject: [dts] [PATCH V1 1/4] tests/kernelpf_iavf: modify code to adapt avx512
Date: Tue,  2 Nov 2021 14:43:15 +0800	[thread overview]
Message-ID: <1635835398-70543-1-git-send-email-xiangx.an@intel.com> (raw)

Based on dpdk commit:4b64ccb328 modify dts code to adapt avx512.

Signed-off-by: Xiang An <xiangx.an@intel.com>
---
 tests/TestSuite_kernelpf_iavf.py | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py
index dde59e1..c5836dd 100644
--- a/tests/TestSuite_kernelpf_iavf.py
+++ b/tests/TestSuite_kernelpf_iavf.py
@@ -44,7 +44,7 @@ import time
 import framework.utils as utils
 from framework.packet import Packet
 from framework.pmd_output import PmdOutput
-from framework.settings import HEADER_SIZE
+from framework.settings import HEADER_SIZE, load_global_setting, DPDK_RXMODE_SETTING
 from framework.test_case import TestCase
 from framework.utils import RED
 from framework.virt_common import VM
@@ -774,7 +774,10 @@ class TestKernelpfIavf(TestCase):
         self.verify(bad_l4csum == 2, "Bad-ipcsum check error")
 
     def test_vf_hw_checksum_offload(self):
-        self.vm_testpmd.start_testpmd("all")
+        if load_global_setting(DPDK_RXMODE_SETTING) == 'default':
+            self.vm_testpmd.start_testpmd("all")
+        elif load_global_setting(DPDK_RXMODE_SETTING) == 'avx512':
+            self.vm_testpmd.start_testpmd("all", "--enable-rx-cksum")
         self.enable_hw_checksum()
         self.vm_testpmd.execute_cmd("port start all")
         self.vm_testpmd.execute_cmd("set verbose 1")
@@ -782,7 +785,10 @@ class TestKernelpfIavf(TestCase):
         self.checksum_verify()
 
     def test_vf_sw_checksum_offload(self):
-        self.vm_testpmd.start_testpmd("all")
+        if load_global_setting(DPDK_RXMODE_SETTING) == 'default':
+            self.vm_testpmd.start_testpmd("all")
+        elif load_global_setting(DPDK_RXMODE_SETTING) == 'avx512':
+            self.vm_testpmd.start_testpmd("all", "--enable-rx-cksum")
         self.enable_sw_checksum()
         self.vm_testpmd.execute_cmd("port start all")
         self.vm_testpmd.execute_cmd("start")
-- 
1.8.3.1


             reply	other threads:[~2021-11-02  6:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-02  6:43 Xiang An [this message]
2021-11-02  6:43 ` [dts] [PATCH V1 2/4] tests/vf_vlan: " Xiang An
2021-11-02  6:43 ` [dts] [PATCH V1 3/4] tests/l3fwdacl: " Xiang An
2021-11-02  6:43 ` [dts] [PATCH V1 4/4] tests/unit_tests_eal: " Xiang An
2021-11-02 10:43   ` Ananyev, Konstantin
2021-11-02 11:16     ` Huang, ZhiminX
2021-11-02 11:26       ` Ananyev, Konstantin
2021-11-03  3:07         ` Huang, ZhiminX
2021-11-03 10:39           ` Ananyev, Konstantin

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=1635835398-70543-1-git-send-email-xiangx.an@intel.com \
    --to=xiangx.an@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).