ethoc: enable transmit time stamping.
authorRichard Cochran <richardcochran@gmail.com>
Sun, 12 Jun 2011 02:19:04 +0000 (02:19 +0000)
committerDavid S. Miller <davem@conan.davemloft.net>
Mon, 13 Jun 2011 21:26:15 +0000 (17:26 -0400)
This patch enables software (and phy device) transmit time stamping
for the OpenCores 10/100 MAC driver. Compile tested only.

Cc: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Signed-off-by: David S. Miller <davem@conan.davemloft.net>
drivers/net/ethoc.c

index 9162c705c4faf78cf741a820068c5785a00603ca..0e8cc75bb5f41899d5736317225b83f61e16bd52 100644 (file)
@@ -875,6 +875,7 @@ static netdev_tx_t ethoc_start_xmit(struct sk_buff *skb, struct net_device *dev)
        }
 
        spin_unlock_irq(&priv->lock);
+       skb_tx_timestamp(skb);
 out:
        dev_kfree_skb(skb);
        return NETDEV_TX_OK;