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 69BA4A0352; Tue, 25 Jan 2022 01:56:49 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CF4C64122E; Tue, 25 Jan 2022 01:56:48 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id DDD7D41186; Tue, 25 Jan 2022 01:56:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643072207; x=1674608207; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=P73tq3SHHGkMw+a15YBQyfGuhN+raOHfex5n8D+PmUo=; b=CY0gnZvIe5L0rwBoIxiHakzl/MhVoWWDIrhUqQO2MT2bI6HTvgcKYrLx nloFnl+T8oVUDCEdUifgT/O7e20OEjwOFWlAQAMLyAFMXcJFebeAlDcIh N4y++uLakZF3RD4u1mT6ul3+JuxbckUMPmdi5L2rNH/eKLxqXGQJUZjcl 3R0fLOhsOVsoWWLwxfUcEIKPwavhafzTMsjwQUSj2ZBKiG/NdpgztXaoG 9mWXCuRd5cl0LppzDbVbJUefz9OQTRLjLQua17/wR1voBIFteOiYRKEcD 2kAWXgrqfa40seJwT4b2nSPHyUCHd95byv0uAYb9vprpc/dQlj9bCbdrK w==; X-IronPort-AV: E=McAfee;i="6200,9189,10237"; a="246405160" X-IronPort-AV: E=Sophos;i="5.88,313,1635231600"; d="scan'208";a="246405160" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2022 16:56:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,313,1635231600"; d="scan'208";a="596966235" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by fmsmga004.fm.intel.com with ESMTP; 24 Jan 2022 16:56:45 -0800 Received: from shsmsx604.ccr.corp.intel.com (10.109.6.214) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Mon, 24 Jan 2022 16:56:45 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX604.ccr.corp.intel.com (10.109.6.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Tue, 25 Jan 2022 08:56:43 +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.2308.020; Tue, 25 Jan 2022 08:56:43 +0800 From: "Zhang, Qi Z" To: "Su, Simei" , "Yang, Qiming" CC: "dev@dpdk.org" , "Wu, Wenjun1" , "stable@dpdk.org" Subject: RE: [PATCH] net/ice: fix ieee1588fwd not show PTP timestamp Thread-Topic: [PATCH] net/ice: fix ieee1588fwd not show PTP timestamp Thread-Index: AQHYDenjISWkYKHkyEWrCfClIN/5baxy8Ggg Date: Tue, 25 Jan 2022 00:56:43 +0000 Message-ID: References: <20220120102152.281951-1-simei.su@intel.com> In-Reply-To: <20220120102152.281951-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 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 > -----Original Message----- > From: Su, Simei > Sent: Thursday, January 20, 2022 6:22 PM > To: Zhang, Qi Z ; Yang, Qiming > > Cc: dev@dpdk.org; Wu, Wenjun1 ; Su, Simei > ; stable@dpdk.org > Subject: [PATCH] net/ice: fix ieee1588fwd not show PTP timestamp Renamed to=20 fix missing mbuf offload flag for Rx timestamp >=20 > For received PTP packets, the flag "RTE_MBUF_F_RX_IEEE1588_TMST" has > not been set which leads to received PTP packet not timestamped by > hardware shown in testpmd/ieee1588 fwd. >=20 > Fixes: 646dcbe6c701 ("net/ice: support IEEE 1588 PTP") > Cc: stable@dpdk.org >=20 > Signed-off-by: Simei Su Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi > --- > drivers/net/ice/ice_rxtx.c | 7 +++++++ > 1 file changed, 7 insertions(+) >=20 > diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c inde= x > d50acf5..d7276d7 100644 > --- a/drivers/net/ice/ice_rxtx.c > +++ b/drivers/net/ice/ice_rxtx.c > @@ -1554,6 +1554,9 @@ ice_rxd_to_vlan_tci(struct rte_mbuf *mb, volatile > union ice_rx_flex_desc *rxdp) #if (ICE_LOOK_AHEAD !=3D 8) #error "PMD I= CE: > ICE_LOOK_AHEAD must be 8\n" > #endif > + > +#define ICE_PTP_TS_VALID 0x1 > + > static inline int > ice_rx_scan_hw_ring(struct ice_rx_queue *rxq) { @@ -1634,6 +1637,10 @@ > ice_rx_scan_hw_ring(struct ice_rx_queue *rxq) >=20 > rte_le_to_cpu_32(rxdp[j].wb.flex_ts.ts_high); > mb->timesync =3D rxq->queue_id; > pkt_flags |=3D RTE_MBUF_F_RX_IEEE1588_PTP; > + if (rxdp[j].wb.time_stamp_low & > + ICE_PTP_TS_VALID) > + pkt_flags |=3D > + > RTE_MBUF_F_RX_IEEE1588_TMST; > } > #endif > mb->ol_flags |=3D pkt_flags; > -- > 2.9.5