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

gianfar: Add hardware TX timestamping support



If a packet has the skb_shared_tx->hardware flag set the device is
instructed to generate a TX timestamp and write it back to memory after
the frame is transmitted. During the clean_tx_ring operation the
timestamp will be extracted and copied into the skb_shared_hwtstamps
struct of the skb.

TX timestamping is enabled by setting the tx_type to something else
than HWTSTAMP_TX_OFF with the SIOCSHWTSTAMP ioctl command. It is only
supported by eTSEC devices.

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