From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 20DB3A00C2; Wed, 4 Jan 2023 04:42:03 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 18A0B40A82; Wed, 4 Jan 2023 04:42:03 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 9E11840698 for ; Wed, 4 Jan 2023 04:42:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672803721; x=1704339721; h=from:to:cc:subject:date:message-id; bh=F2jKuAdA6h02VtZu3eNnUnq4bRHeLhWNA5PTlaHskFc=; b=mokn4GG2SxtOQFrBuefeuJ32LDagyE8/oly8qZUzA40sldkP6O93z5mV yjfIxWsu9qIjNHPGYdFh/cV9MvWV727CtnN24nGW7DetdZ0LEX8V/NYK1 5eERKRPopV7P1ZRDAm8V++vkqSJZRGhs8C4D+3TgghhQylsVM2tUStFzk Uz6xA6m9ryj5zwps4PWnZQnwe2T/Fp03zIrf0iU+CCACqBc6r/yqXGd0b EwS4Wl2vacjqxNw3iUAzneOb0hV7F4rEyjRKinf63kLWHOmZ2tp3zFqiJ vlE5n6EjZusr0MMQuD+1yQbY5I5KUeXClRcEnzXB1yqs/OtPWFHtoPnEt A==; X-IronPort-AV: E=McAfee;i="6500,9779,10579"; a="386258534" X-IronPort-AV: E=Sophos;i="5.96,297,1665471600"; d="scan'208";a="386258534" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2023 19:41:59 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10579"; a="655032928" X-IronPort-AV: E=Sophos;i="5.96,297,1665471600"; d="scan'208";a="655032928" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2023 19:41:57 -0800 From: Lingli Chen To: dts@dpdk.org Cc: Lingli Chen Subject: [dts][PATCH V2] test*: Add ieee1588_enable on ICE Date: Tue, 3 Jan 2023 21:42:47 -0500 Message-Id: <20230104024247.54636-1-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 According to dpdk commit f5ada3bcf12d (net/ice: fix mbuf offload flag for Rx timestamp) add ieee1588_enable on ICE. Signed-off-by: Lingli Chen --- V2: update test plan accordingly conf/test_case_checklist.json | 4 +--- test_plans/ieee1588_test_plan.rst | 4 ++++ tests/TestSuite_ieee1588.py | 12 +++++++++--- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/conf/test_case_checklist.json b/conf/test_case_checklist.json index 98f3eb49..f31daf62 100644 --- a/conf/test_case_checklist.json +++ b/conf/test_case_checklist.json @@ -1293,9 +1293,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/test_plans/ieee1588_test_plan.rst b/test_plans/ieee1588_test_plan.rst index 285ca306..f5c826e7 100644 --- a/test_plans/ieee1588_test_plan.rst +++ b/test_plans/ieee1588_test_plan.rst @@ -68,6 +68,10 @@ The -n command is used to select the number of memory channels. It should match --tx-offloads: 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. +If test on ICE, start testpmd with the following parameters:: + + -cffffff -n 3 -- -i --tx-offloads=0x00008000 --enable-rx-timestamp + Test Case: Enable IEEE1588 PTP packet reception and generation ============================================================== 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): """ -- 2.17.1