Re: [chrony-dev] [PATCH] ntp: ignore unknown link speed when updating interface

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


On Wed, Aug 26, 2026 at 09:28:20PM -0300, JR Lanteigne wrote:
> The ETHTOOL_GSET ioctl can report the speed as -1 (SPEED_UNKNOWN)
> while the link is down or autonegotiating. The value passes the
> nonzero check and is latched until the next update, up to 2^minpoll
> seconds after the link is back up, corrupting the RX timestamp
> correction of packets received in that interval (-752 us instead of
> +7.5 us for a 94-octet frame at 100 Mb/s).
> 
> Ignore non-positive speeds to keep the last known speed.

Looks good to me. Thanks.

I'm planning to release 4.9 today and this will be included.

-- 
Miroslav Lichvar


-- 
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/