Skip to content
Commit cc772ab7 authored by Manfred Rudigier's avatar Manfred Rudigier Committed by David S. Miller
Browse files

gianfar: Add hardware RX timestamping support



The device is configured to insert hardware timestamps into all
received packets. The RX timestamps are extracted from the padding
alingment bytes during the clean_rx_ring operation and copied into the
skb_shared_hwtstamps struct of the skb. This extraction only happens if
the rx_filter was set to something else than HWTSTAMP_FILTER_NONE with
the SIOCSHWTSTAMP ioctl command.

Hardware timestamping is only supported for eTSEC devices. To indicate
device support the new FSL_GIANFAR_DEV_HAS_TIMER flag was introduced.

Signed-off-by: default avatarManfred Rudigier <manfred.rudigier@omicron.at>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e44171f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment