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

Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Signed-off-by: David S. Miller <davem@conan.davemloft.net>
drivers/net/stmmac/stmmac_main.c

index e25e44a..5b85f4c 100644 (file)
@@ -1081,6 +1081,8 @@ static netdev_tx_t stmmac_xmit(struct sk_buff *skb, struct net_device *dev)
 
        priv->hw->dma->enable_dma_transmission(priv->ioaddr);
 
+       skb_tx_timestamp(skb);
+
        return NETDEV_TX_OK;
 }