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 075A5A0548; Mon, 1 Nov 2021 02:20:37 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 81AF340E28; Mon, 1 Nov 2021 02:20:37 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 05F1A40DF6 for ; Mon, 1 Nov 2021 02:20:34 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10154"; a="217839925" X-IronPort-AV: E=Sophos;i="5.87,198,1631602800"; d="scan'208";a="217839925" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2021 18:20:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,198,1631602800"; d="scan'208";a="449098078" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga003.jf.intel.com with ESMTP; 31 Oct 2021 18:20:33 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Sun, 31 Oct 2021 18:20:33 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX601.ccr.corp.intel.com (10.109.6.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Mon, 1 Nov 2021 09:20:31 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2242.012; Mon, 1 Nov 2021 09:20:31 +0800 From: "Zhang, Qi Z" To: "Su, Simei" CC: "dev@dpdk.org" , "Van Haaren, Harry" , "Wu, Wenjun1" Thread-Topic: [PATCH v4] net/ice: fix performance issue for Rx timestamp Thread-Index: AQHXzMUxHqb2CktHDkSuoD697YQC3qvt42wQ Date: Mon, 1 Nov 2021 01:20:31 +0000 Message-ID: <964e92194d8f4c629e2e66feb1004201@intel.com> References: <20211029101557.86219-1-simei.su@intel.com> <20211029125603.92371-1-simei.su@intel.com> In-Reply-To: <20211029125603.92371-1-simei.su@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.200.16 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v4] net/ice: fix performance issue for Rx timestamp X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Su, Simei > Sent: Friday, October 29, 2021 8:56 PM > To: Zhang, Qi Z > Cc: dev@dpdk.org; Van Haaren, Harry ; Wu, > Wenjun1 ; Su, Simei > Subject: [PATCH v4] net/ice: fix performance issue for Rx timestamp >=20 > In Rx data path, it reads hardware registers per packet, resulting in big > performance drop. This patch improves performance from two aspects: > (1) replace per packet hardware register read by per burst. > (2) reduce hardware register read time from 3 to 2 when the low value of > time is not close to overflow. >=20 > Meanwhile, this patch refines "ice_timesync_read_rx_timestamp" and > "ice_timesync_read_tx_timestamp" API in which > "ice_tstamp_convert_32b_64b" > is also used. >=20 > Fixes: 953e74e6b73a ("net/ice: enable Rx timestamp on flex descriptor") > Fixes: 646dcbe6c701 ("net/ice: support IEEE 1588 PTP") >=20 > Suggested-by: Harry van Haaren > Signed-off-by: Simei Su Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi