From: Willem de Bruijn Date: Fri, 27 Apr 2012 09:04:05 +0000 (+0000) Subject: e1000e: add transmit timestamping support X-Git-Tag: firefly_0821_release~3680^2~2787^2~240 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=80be3129d7152fe73b7d5db4595e2f4267497f24;p=firefly-linux-kernel-4.4.55.git e1000e: add transmit timestamping support Signed-off-by: Willem de Bruijn Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c index cdfb1d68fbd8..140fee14b313 100644 --- a/drivers/net/ethernet/intel/e1000e/netdev.c +++ b/drivers/net/ethernet/intel/e1000e/netdev.c @@ -5131,6 +5131,8 @@ static netdev_tx_t e1000_xmit_frame(struct sk_buff *skb, /* if count is 0 then mapping error has occurred */ count = e1000_tx_map(tx_ring, skb, first, max_per_txd, nr_frags, mss); if (count) { + skb_tx_timestamp(skb); + netdev_sent_queue(netdev, skb->len); e1000_tx_queue(tx_ring, tx_flags, count); /* Make sure there is space in the ring for the next send. */