From: Richard Cochran Date: Sun, 12 Jun 2011 02:19:02 +0000 (+0000) Subject: tg3: enable transmit time stamping. X-Git-Tag: MMI-PSA29.97-13-9~18929^2~451^2~40 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2669069aacc914821b45fe14a49e7fe0ba5d10bd;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git tg3: enable transmit time stamping. This patch enables software (and phy device) transmit time stamping for the TIGON3 driver. Compile tested only. Cc: Matt Carlson Cc: Michael Chan Signed-off-by: Richard Cochran Signed-off-by: David S. Miller --- diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index c8a145d72f17..aa1d1defc820 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c @@ -6092,6 +6092,8 @@ static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, struct net_device *dev) /* Packets are ready, update Tx producer idx local and on card. */ tw32_tx_mbox(tnapi->prodmbox, entry); + skb_tx_timestamp(skb); + tnapi->tx_prod = entry; if (unlikely(tg3_tx_avail(tnapi) <= (MAX_SKB_FRAGS + 1))) { netif_tx_stop_queue(txq);