From: Willem de Bruijn Date: Fri, 27 Apr 2012 09:04:05 +0000 (+0000) Subject: e1000e: add transmit timestamping support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=80be3129d7152fe73b7d5db4595e2f4267497f24;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.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. */