]> git.baikalelectronics.ru Git - kernel.git/commit
gianfar: Add hardware TX timestamping support
authorManfred Rudigier <Manfred.Rudigier@omicron.at>
Thu, 8 Apr 2010 23:10:35 +0000 (23:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Apr 2010 08:41:31 +0000 (01:41 -0700)
commit027b3985e6250c93ed410c4785873a43312fb941
tree161b16941b8c11023a9fb24324f22463dd16f163
parenta1e46e3d3a4d4f56dd3db720417404d2aaf0b566
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: Manfred Rudigier <manfred.rudigier@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gianfar.c
drivers/net/gianfar.h