patch 'net/ice: fix read clock to use PHC hardware time' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:03:39 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/26. 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/e5c452eda1df2a6fefd3bf8ad510c0e3e499aa2b
Thanks.
Kevin
---
>From e5c452eda1df2a6fefd3bf8ad510c0e3e499aa2b Mon Sep 17 00:00:00 2001
From: Soumyadeep Hore <soumyadeep.hore at intel.com>
Date: Fri, 30 Oct 2026 20:08:42 +0530
Subject: [PATCH] net/ice: fix read clock to use PHC hardware time
[ upstream commit c981dcfe134e4c641951ee15a76de0b56aafb05a ]
The ice_read_clock() function was incorrectly using clock_gettime()
with CLOCK_MONOTONIC_RAW to return system time instead of the actual
hardware PHC time. This caused txtime scheduling to use a completely
different time base than the PHC, resulting in all scheduled timestamps
being interpreted as past time by the hardware.
Replace the system clock read with ice_timesync_read_time() which reads
the actual PHC register value, ensuring the application can compute
correct future timestamps relative to the hardware clock.
Fixes: 327fe144ca39 ("net/ice: support clock read")
Signed-off-by: Soumyadeep Hore <soumyadeep.hore at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
drivers/net/intel/ice/ice_ethdev.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/net/intel/ice/ice_ethdev.c b/drivers/net/intel/ice/ice_ethdev.c
index 454f1d547f..2f72235317 100644
--- a/drivers/net/intel/ice/ice_ethdev.c
+++ b/drivers/net/intel/ice/ice_ethdev.c
@@ -7378,14 +7378,14 @@ ice_timesync_disable(struct rte_eth_dev *dev)
static int
-ice_read_clock(__rte_unused struct rte_eth_dev *dev, uint64_t *clock)
+ice_read_clock(struct rte_eth_dev *dev, uint64_t *clock)
{
- struct timespec system_time;
+ struct timespec ts;
+ int ret;
-#ifdef RTE_EXEC_ENV_LINUX
- clock_gettime(CLOCK_MONOTONIC_RAW, &system_time);
-#else
- clock_gettime(CLOCK_MONOTONIC, &system_time);
-#endif
- *clock = system_time.tv_sec * NSEC_PER_SEC + system_time.tv_nsec;
+ ret = ice_timesync_read_time(dev, &ts);
+ if (ret)
+ return ret;
+
+ *clock = (uint64_t)ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec;
return 0;
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:47.527281675 +0000
+++ 0293-net-ice-fix-read-clock-to-use-PHC-hardware-time.patch 2026-12-03 12:52:39.236269505 +0000
@@ -1 +1 @@
-From c981dcfe134e4c641951ee15a76de0b56aafb05a Mon Sep 17 00:00:00 2001
+From e5c452eda1df2a6fefd3bf8ad510c0e3e499aa2b Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit c981dcfe134e4c641951ee15a76de0b56aafb05a ]
+
@@ -17 +18,0 @@
-Cc: stable at dpdk.org
@@ -26 +27 @@
-index b846555b97..d2ba64efb6 100644
+index 454f1d547f..2f72235317 100644
@@ -29 +30 @@
-@@ -7815,14 +7815,14 @@ ice_timesync_disable(struct rte_eth_dev *dev)
+@@ -7378,14 +7378,14 @@ ice_timesync_disable(struct rte_eth_dev *dev)
More information about the stable
mailing list