patch 'net/ice: fix mbuf offload flag for Rx timestamp' has been queued to stable release 21.11.1

Kevin Traynor ktraynor at redhat.com
Mon Feb 21 16:34:41 CET 2022


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 <simei.su at intel.com>
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 <simei.su at intel.com>
Acked-by: Qi Zhang <qi.z.zhang at intel.com>
---
 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 at dpdk.org



More information about the stable mailing list