test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1 0/2] modify dts code to adapt avx512
@ 2021-11-01  5:30 Xiang An
  2021-11-01  5:31 ` [dts] [PATCH V1 1/2] tests/kernelpf_iavf: modify " Xiang An
  2021-11-01  5:31 ` [dts] [PATCH V1 2/2] tests/vf_vlan: " Xiang An
  0 siblings, 2 replies; 3+ messages in thread
From: Xiang An @ 2021-11-01  5:30 UTC (permalink / raw)
  To: dts; +Cc: xiangx.an

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

Xiang An (2):
  tests/kernelpf_iavf: modify code to adapt avx512
  tests/vf_vlan: modify code to adapt avx512

 tests/TestSuite_kernelpf_iavf.py | 12 +++++++++---
 tests/TestSuite_vf_vlan.py       | 12 +++++++++---
 2 files changed, 18 insertions(+), 6 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [dts] [PATCH V1 1/2] tests/kernelpf_iavf: modify code to adapt avx512
  2021-11-01  5:30 [dts] [PATCH V1 0/2] modify dts code to adapt avx512 Xiang An
@ 2021-11-01  5:31 ` Xiang An
  2021-11-01  5:31 ` [dts] [PATCH V1 2/2] tests/vf_vlan: " Xiang An
  1 sibling, 0 replies; 3+ messages in thread
From: Xiang An @ 2021-11-01  5:31 UTC (permalink / raw)
  To: dts; +Cc: xiangx.an

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 dde59e10..601cc8c5 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) == '':
+            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) == '':
+            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")
-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [dts] [PATCH V1 2/2] tests/vf_vlan: modify code to adapt avx512
  2021-11-01  5:30 [dts] [PATCH V1 0/2] modify dts code to adapt avx512 Xiang An
  2021-11-01  5:31 ` [dts] [PATCH V1 1/2] tests/kernelpf_iavf: modify " Xiang An
@ 2021-11-01  5:31 ` Xiang An
  1 sibling, 0 replies; 3+ messages in thread
From: Xiang An @ 2021-11-01  5:31 UTC (permalink / raw)
  To: dts; +Cc: xiangx.an

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

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

diff --git a/tests/TestSuite_vf_vlan.py b/tests/TestSuite_vf_vlan.py
index 127eca39..111e4ac7 100644
--- a/tests/TestSuite_vf_vlan.py
+++ b/tests/TestSuite_vf_vlan.py
@@ -35,7 +35,7 @@ import time
 
 from framework.packet import Packet
 from framework.pmd_output import PmdOutput
-from framework.settings import get_nic_name
+from framework.settings import get_nic_name, load_global_setting, DPDK_RXMODE_SETTING
 from framework.test_case import TestCase
 from framework.virt_common import VM
 
@@ -346,7 +346,10 @@ class TestVfVlan(TestCase):
         self.vm0_dut_ports = self.vm_dut_0.get_ports('any')
 
         self.vm0_testpmd = PmdOutput(self.vm_dut_0)
-        self.vm0_testpmd.start_testpmd(VM_CORES_MASK)
+        if load_global_setting(DPDK_RXMODE_SETTING) == '':
+            self.vm0_testpmd.start_testpmd(VM_CORES_MASK)
+        elif load_global_setting(DPDK_RXMODE_SETTING) == 'avx512':
+            self.vm0_testpmd.start_testpmd(VM_CORES_MASK, '--enable-rx-cksum')
         self.vm0_testpmd.execute_cmd('set fwd rxonly')
         self.vm0_testpmd.execute_cmd('set verbose 1')
         self.vm0_testpmd.execute_cmd('vlan set strip on 0')
@@ -417,7 +420,10 @@ class TestVfVlan(TestCase):
         if self.kdriver == "i40e":
             self.vm0_testpmd.start_testpmd(VM_CORES_MASK, '')
         else:
-            self.vm0_testpmd.start_testpmd(VM_CORES_MASK)
+            if load_global_setting(DPDK_RXMODE_SETTING) == '':
+                self.vm0_testpmd.start_testpmd(VM_CORES_MASK)
+            elif load_global_setting(DPDK_RXMODE_SETTING) == 'avx512':
+                self.vm0_testpmd.start_testpmd(VM_CORES_MASK, '--enable-rx-cksum')
         self.vm0_testpmd.execute_cmd('set fwd rxonly')
         self.vm0_testpmd.execute_cmd('set verbose 1')
         self.vm0_testpmd.execute_cmd('start')
-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-01  5:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-01  5:30 [dts] [PATCH V1 0/2] modify dts code to adapt avx512 Xiang An
2021-11-01  5:31 ` [dts] [PATCH V1 1/2] tests/kernelpf_iavf: modify " Xiang An
2021-11-01  5:31 ` [dts] [PATCH V1 2/2] tests/vf_vlan: " Xiang An

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).