From: Richard Cochran Date: Sun, 12 Jun 2011 02:19:06 +0000 (+0000) Subject: stmmac: enable transmit time stamping. X-Git-Tag: MMI-PSA29.97-13-9~18929^2~451^2~36 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3e82ce120c6f5036c3c739903e67218fd47cbc4c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git stmmac: enable transmit time stamping. This patch enables software (and phy device) transmit time stamping for the STMicroelectronics Ethernet driver. Compile tested only. Cc: Giuseppe Cavallaro Signed-off-by: Richard Cochran Signed-off-by: David S. Miller --- diff --git a/drivers/net/stmmac/stmmac_main.c b/drivers/net/stmmac/stmmac_main.c index e25e44a45c28..5b85f4ca2004 100644 --- a/drivers/net/stmmac/stmmac_main.c +++ b/drivers/net/stmmac/stmmac_main.c @@ -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; }