From patchwork Wed Oct 19 01:06:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 118504 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8E2D3A0572; Wed, 19 Oct 2022 03:56:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 64CC24069C; Wed, 19 Oct 2022 03:56:58 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id BC78E40041 for ; Wed, 19 Oct 2022 03:56:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666144616; x=1697680616; h=from:to:cc:subject:date:message-id; bh=2mN+VIHwDVnz+2Xabi5w7ucTB7M1MyhdKRxWUf09XM4=; b=BO+l/8ats4KFYiKz5vdq36CzEQZC81Rokhhzo7nMo1BHZhRCdlgZNVY3 LvRTbHgolerV0PbDvoIPi7sa4rvO7otAV0/ycHE/A8zWClBXyY5bvx/nw XmEuOTAH4kY6KugLYz6VD/b1p/XgDT4I0z2Gocx1vqbH2VSLp/iSwRSvl ez1+AXB2rssHuW2QF3LmDu0Y9D8ZYnJX8tloJUbPsYz7vq7jvMhd+BJM8 PzrzBb5TkuaHIUQAOZL5WLWKjPvUAG+xFajfQuQ3NCPkCG9vH9PL5JDLn rhUNrefmneD4yrpQDXahTPziE7QEorcgrSZmtPhEGHjo0hcftywyFVM0A A==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="303898381" X-IronPort-AV: E=Sophos;i="5.95,194,1661842800"; d="scan'208";a="303898381" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2022 18:56:55 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="623900656" X-IronPort-AV: E=Sophos;i="5.95,194,1661842800"; d="scan'208";a="623900656" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2022 18:56:54 -0700 From: Lingli Chen To: dts@dpdk.org Cc: zhiminx.huang@intel.com, Lingli Chen Subject: [dts][PATCH V2] test_plans/ieee1588: according to dts script compile ieee1588 update testplan Date: Tue, 18 Oct 2022 21:06:15 -0400 Message-Id: <20221019010615.49882-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 Modify build extra options, start testpmd parameters sync with script. Signed-off-by: Lingli Chen Acked-by: Zhimin Huang --- V2:add some description about '--tx-offloads=0x00008000' test_plans/ieee1588_test_plan.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test_plans/ieee1588_test_plan.rst b/test_plans/ieee1588_test_plan.rst index 94c56edf..285ca306 100644 --- a/test_plans/ieee1588_test_plan.rst +++ b/test_plans/ieee1588_test_plan.rst @@ -52,7 +52,9 @@ to the device under test:: usertools/dpdk-devbind.py --bind=vfio-pci device_bus_id The support of the IEEE1588 Precise Time Protocol in Poll Mode Drivers must -be configured at compile-time with the ``CONFIG_RTE_LIBRTE_IEEE1588`` option. +be configured at compile-time with the ``DRTE_LIBRTE_IEEE1588`` option:: + + CC=gcc meson -Denable_kmods=True -Dlibdir=lib -Dc_args=-DRTE_LIBRTE_IEEE1588 --default-library=static x86_64-native-linuxapp-gcc Configure the packet format for the traffic generator to be IEEE1588 PTP Ethernet type ``0x88F7`` and containing PTP ``SYNC`` (version 2 at offset 1, @@ -60,10 +62,11 @@ and message ID 0 at offset 0). Start the ``testpmd`` application with the following parameters:: - -cffffff -n 3 -- -i --rxpt=0 --rxht=0 --rxwt=0 \ - --txpt=39 --txht=0 --txwt=0 + -cffffff -n 3 -- -i --tx-offloads=0x00008000 The -n command is used to select the number of memory channels. It should match the number of memory channels on that setup. +--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. Test Case: Enable IEEE1588 PTP packet reception and generation ==============================================================