e1000e: add transmit timestamping support
authorWillem de Bruijn <willemb@google.com>
Fri, 27 Apr 2012 09:04:05 +0000 (09:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 May 2012 01:33:26 +0000 (21:33 -0400)
Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/e1000e/netdev.c

index cdfb1d68fbd80bdf8838400a8135107f3b5ea780..140fee14b3136db46bbe90a4865f9da4d749935c 100644 (file)
@@ -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. */