]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Add RX packet timestamping for EF10
authorJon Cooper <jcooper@solarflare.com>
Mon, 18 Nov 2013 12:54:41 +0000 (12:54 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 12 Dec 2013 22:07:13 +0000 (22:07 +0000)
commit064c48ad35ac1934606147b83305f68545487aaf
tree74c54327d245e1c8b2367f9c112264cb055ae2d0
parentc005f67310c4dfb0de29cdd341a7070da27970ce
sfc: Add RX packet timestamping for EF10

The EF10 firmware can optionally insert RX timestamps in the packet
prefix.  These only include the clock minor value.  We must also
enable periodic time sync events on each event queue which provide
the high bits of the clock value.

[bwh: Combined and rebased several changes.
 Added the above description and some sanity checks for inline vs
 separate timestamps.
 Changed efx_rx_skb_attach_timestamp() to read the packet prefix
 from the skb head area.]
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/ef10.c
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/mcdi.c
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/nic.h
drivers/net/ethernet/sfc/ptp.c
drivers/net/ethernet/sfc/rx.c