e1000: add transmit timestamping support
authorWillem de Bruijn <willemb@google.com>
Fri, 27 Apr 2012 09:04:04 +0000 (09:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 May 2012 01:33:25 +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/e1000/e1000_main.c

index 3d712f2..40438ea 100644 (file)
@@ -3261,6 +3261,8 @@ static netdev_tx_t e1000_xmit_frame(struct sk_buff *skb,
                             nr_frags, mss);
 
        if (count) {
+               skb_tx_timestamp(skb);
+
                e1000_tx_queue(adapter, tx_ring, tx_flags, count);
                /* Make sure there is space in the ring for the next send. */
                e1000_maybe_stop_tx(netdev, tx_ring, MAX_SKB_FRAGS + 2);