[V1] tests/ieee1588: Add this test on ICE

Message ID 20221229092837.6192-1-linglix.chen@intel.com (mailing list archive)
State Changes Requested
Headers
Series [V1] tests/ieee1588: Add this test on ICE |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-suite-test success Testing OK

Commit Message

Lingli Chen Dec. 29, 2022, 9:28 a.m. UTC
  According to dpdk commit f5ada3bcf12d (net/ice: fix mbuf offload flag for Rx timestamp)
add ieee1588_enable on ICE.

Signed-off-by: Lingli Chen <linglix.chen@intel.com>
---
 conf/test_case_checklist.json |  4 +---
 tests/TestSuite_ieee1588.py   | 12 +++++++++---
 2 files changed, 10 insertions(+), 6 deletions(-)
  

Comments

Tu, Lijuan Jan. 4, 2023, 1:27 a.m. UTC | #1
> -----Original Message-----
> From: Lingli Chen <linglix.chen@intel.com>
> Sent: Thursday, December 29, 2022 5:29 PM
> To: dts@dpdk.org
> Cc: Huang, ZhiminX <zhiminx.huang@intel.com>; Chen, LingliX
> <linglix.chen@intel.com>
> Subject: [dts][PATCH V1] tests/ieee1588: Add this test on ICE
> 
> According to dpdk commit f5ada3bcf12d (net/ice: fix mbuf offload flag for Rx
> timestamp) add ieee1588_enable on ICE.
> 
> Signed-off-by: Lingli Chen <linglix.chen@intel.com>

Could you please also update test plan accordingly, thanks.
  

Patch

diff --git a/conf/test_case_checklist.json b/conf/test_case_checklist.json
index f88f5be1..14de236a 100644
--- a/conf/test_case_checklist.json
+++ b/conf/test_case_checklist.json
@@ -1285,9 +1285,7 @@ 
             "NIC": [
                 "IGB_1G-I210_COPPER",
                 "cavium_a034",
-                "cavium_0011",
-                "ICE_25G-E810C_SFP",
-                "ICE_100G-E810C_QSFP"
+                "cavium_0011"
             ],
             "Target": [
                 "ALL"
diff --git a/tests/TestSuite_ieee1588.py b/tests/TestSuite_ieee1588.py
index 300d85d4..8a43a8c2 100644
--- a/tests/TestSuite_ieee1588.py
+++ b/tests/TestSuite_ieee1588.py
@@ -37,9 +37,15 @@  class TestIeee1588(TestCase):
         # For IEEE1588, the full-feature tx path needs to be enabled.
         # Enabling any tx offload will force DPDK utilize full tx path.
         # Enabling multiple segment offload is more reasonable for user cases.
-        self.pmdout.start_testpmd(
-            "Default", " --tx-offloads=%s" % DEV_TX_OFFLOAD_MULTI_SEGS
-        )
+        if self.kdriver == "ice":
+            self.pmdout.start_testpmd(
+                "Default",
+                " --enable-rx-timestamp --tx-offloads=%s" % DEV_TX_OFFLOAD_MULTI_SEGS,
+            )
+        else:
+            self.pmdout.start_testpmd(
+                "Default", " --tx-offloads=%s" % DEV_TX_OFFLOAD_MULTI_SEGS
+            )
 
     def set_up(self):
         """