Files
linux/drivers/net
Alex Maftei (amaftei) 99746e92fa sfc: fix timestamp reconstruction at 16-bit rollover points
[ Upstream commit 23797b9890 ]

We can't just use the top bits of the last sync event as they could be
off-by-one every 65,536 seconds, giving an error in reconstruction of
65,536 seconds.

This patch uses the difference in the bottom 16 bits (mod 2^16) to
calculate an offset that needs to be applied to the last sync event to
get to the current time.

Signed-off-by: Alexandru-Mihai Maftei <amaftei@solarflare.com>
Acked-by: Martin Habets <mhabets@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-03-21 08:11:56 +01:00
..
2020-03-21 08:11:53 +01:00
2019-09-26 08:56:17 +02:00
2019-09-27 20:58:35 +02:00
2019-10-24 14:53:48 -07:00
2020-01-12 12:21:49 +01:00