[PATCH v3] net/idpf: harden PTP frequency adjustment

Bruce Richardson bruce.richardson at intel.com
Tue May 19 18:30:05 CEST 2026


On Wed, May 06, 2026 at 04:41:33PM -0400, Soumyadeep Hore wrote:
> Use the direct __int128 calculation on 64-bit builds to keep the
> frequency adjustment path short and readable, while preserving the
> portable split-and-scale calculation on 32-bit builds where __int128
> may be unavailable.
> 
> Both paths avoid the INT64_MIN negation issue in the original code.
> 
> Coverity issue: 501832
> 
Fixes: 1c6e2737fd3e ("net/idpf: support timesync")

> Signed-off-by: Soumyadeep Hore <soumyadeep.hore at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>

Applied to dpdk-next-net-intel,
Thanks,
/Bruce


More information about the dev mailing list