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 1EB9CA0350 for ; Mon, 21 Feb 2022 16:39:37 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1B325410F3; Mon, 21 Feb 2022 16:39:37 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 56A3D410F3 for ; Mon, 21 Feb 2022 16:39:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1645457974; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mO5j/0g1t1UxYDoxw7fZsTfHrIzcTK3zlyBJoy6Y1eQ=; b=d0vE7HX9Yrc+CTK27dDYAqYmMAcdS+mn5vEzIQQ4KeBgH9rPfLCuM78bIzGufrjeQ1WSHw w3cdhuZwkLq7HirGKxCS79licRm8CSnus9yP50k1vIa4LfH6JNqhOFYv85Gz4sSEn1G+C+ 064PQPt5By34Sotcf54YGSqJEtWjmzM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-303-rjg71QthNCGjW6MZm6oJtA-1; Mon, 21 Feb 2022 10:39:30 -0500 X-MC-Unique: rjg71QthNCGjW6MZm6oJtA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1FA6D100C662; Mon, 21 Feb 2022 15:39:29 +0000 (UTC) Received: from rh.Home (unknown [10.39.195.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0AF2E7E2EA; Mon, 21 Feb 2022 15:39:27 +0000 (UTC) From: Kevin Traynor To: Simei Su Cc: Qi Zhang , dpdk stable Subject: patch 'net/ice: fix mbuf offload flag for Rx timestamp' has been queued to stable release 21.11.1 Date: Mon, 21 Feb 2022 15:34:41 +0000 Message-Id: <20220221153625.152324-92-ktraynor@redhat.com> In-Reply-To: <20220221153625.152324-1-ktraynor@redhat.com> References: <20220221153625.152324-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=ktraynor@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 21.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/26/22. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable/commit/b38f8855d6578c3d7ba49d64977e70cf35c426bc Thanks. Kevin --- >From b38f8855d6578c3d7ba49d64977e70cf35c426bc Mon Sep 17 00:00:00 2001 From: Simei Su Date: Thu, 20 Jan 2022 18:21:52 +0800 Subject: [PATCH] net/ice: fix mbuf offload flag for Rx timestamp [ upstream commit f5ada3bcf12d551bc3a3c4c548d2fecf6bbc3ece ] 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. Fixes: 646dcbe6c701 ("net/ice: support IEEE 1588 PTP") Signed-off-by: Simei Su Acked-by: Qi Zhang --- drivers/net/ice/ice_rxtx.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c index ba40a0dc87..58700f1b92 100644 --- a/drivers/net/ice/ice_rxtx.c +++ b/drivers/net/ice/ice_rxtx.c @@ -1555,4 +1555,7 @@ ice_rxd_to_vlan_tci(struct rte_mbuf *mb, volatile union ice_rx_flex_desc *rxdp) #error "PMD ICE: 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) @@ -1635,4 +1638,8 @@ ice_rx_scan_hw_ring(struct ice_rx_queue *rxq) mb->timesync = rxq->queue_id; pkt_flags |= RTE_MBUF_F_RX_IEEE1588_PTP; + if (rxdp[j].wb.time_stamp_low & + ICE_PTP_TS_VALID) + pkt_flags |= + RTE_MBUF_F_RX_IEEE1588_TMST; } #endif -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-02-21 15:22:46.616800065 +0000 +++ 0092-net-ice-fix-mbuf-offload-flag-for-Rx-timestamp.patch 2022-02-21 15:22:44.188704344 +0000 @@ -1 +1 @@ -From f5ada3bcf12d551bc3a3c4c548d2fecf6bbc3ece Mon Sep 17 00:00:00 2001 +From b38f8855d6578c3d7ba49d64977e70cf35c426bc Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit f5ada3bcf12d551bc3a3c4c548d2fecf6bbc3ece ] + @@ -11 +12,0 @@ -Cc: stable@dpdk.org