linux/drivers/net/ethernet/sfc
Alex Maftei (amaftei) 04a244c8e6 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-20 11:55:56 +01:00
..
falcon sfc-falcon: remove ndo_poll_controller 2018-09-28 11:12:29 -07:00
bitfield.h
ef10_regs.h
ef10_sriov.c sfc: remove redundant variable old_vlan 2018-07-04 22:39:11 +09:00
ef10_sriov.h
ef10.c sfc: initialise found bitmap in efx_ef10_mtd_probe 2019-12-05 09:21:09 +01:00
efx.c sfc: detach from cb_page in efx_copy_channel() 2020-03-18 07:14:13 +01:00
efx.h
enum.h
ethtool.c
farch_regs.h
farch.c sfc: correctly initialise filter rwsem for farch 2018-06-30 21:13:37 +09:00
filter.h
io.h
Kconfig
Makefile net: ethernet: sfc: Make subdir logic consistent with other vendors 2018-07-05 20:05:54 +09:00
mcdi_mon.c
mcdi_pcol.h
mcdi_port.c
mcdi.c
mcdi.h
mtd.c
net_driver.h sfc: batch up RX delivery 2018-07-04 14:06:19 +09:00
nic.c
nic.h
ptp.c sfc: fix timestamp reconstruction at 16-bit rollover points 2020-03-20 11:55:56 +01:00
rx.c sfc: batch up RX delivery 2018-07-04 14:06:19 +09:00
selftest.c
selftest.h
siena_sriov.c
siena_sriov.h
siena.c
sriov.c
sriov.h
tx_tso.c
tx.c
tx.h
vfdi.h
workarounds.h