From: Joe Jin Date: Fri, 18 May 2012 03:35:23 +0000 (+0800) Subject: r8169: enable transmit time stamping. X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~5 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d5074dfb45ff5188aafaf48d09fa4487d3e642a7;p=users%2Fjedix%2Flinux-maple.git r8169: enable transmit time stamping. 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 Cc: Francois Romieu (backported from commit 5047fb5d1dfcc92cf2133f246c1fe7b447ec4e5f) Signed-off-by: Richard Cochran Signed-off-by: David S. Miller Signed-off-by: Joe Jin --- diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index 119aa1253159..6ab72e7eb9a3 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c @@ -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) */