]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
r8169: enable transmit time stamping.
authorJoe Jin <joe.jin@oracle.com>
Fri, 18 May 2012 03:35:23 +0000 (11:35 +0800)
committerJoe Jin <joe.jin@oracle.com>
Fri, 18 May 2012 03:39:51 +0000 (11:39 +0800)
This patch has been tested on a machine with the Realtek
RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 05).

Cc: Realtek linux nic maintainers <nic_swsd@realtek.com>
Cc: Francois Romieu <romieu@fr.zoreil.com>
(backported from commit 5047fb5d1dfcc92cf2133f246c1fe7b447ec4e5f)
Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/r8169.c

index 119aa1253159c30796f89b5071394c366267ade8..6ab72e7eb9a3d308a3ee860305b01104a2262b74 100644 (file)
@@ -5521,6 +5521,8 @@ static netdev_tx_t rtl8169_start_xmit(struct sk_buff *skb,
 
        txd->opts2 = cpu_to_le32(opts[1]);
 
+       skb_tx_timestamp(skb);
+
        wmb();
 
        /* Anti gcc 2.95.3 bugware (sic) */