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)
commitbd9a265db26cdbfe74a303111381d90e66f56877
tree74c54327d245e1c8b2367f9c112264cb055ae2d0
parent2ccd0b192534b1dc6af45ffb81faa44b7ae416bf
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