[PATCH v1] net/ice: fix read clock to use PHC hardware time
Bruce Richardson
bruce.richardson at intel.com
Fri Oct 30 18:53:10 CET 2026
On Fri, Oct 30, 2026 at 08:08:42PM +0530, Soumyadeep Hore wrote:
> 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")
> Cc: stable at dpdk.org
>
> Signed-off-by: Soumyadeep Hore <soumyadeep.hore at intel.com>
> ---
> drivers/net/intel/ice/ice_ethdev.c | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the dev
mailing list