diff mbox

[net-next,1/2] r8169: enable transmit time stamping.

Message ID 7ef0f3118d1ff0925852b31397e3bb9684e5a9fd.1331400160.git.richardcochran@gmail.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Richard Cochran March 10, 2012, 5:29 p.m. UTC
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>

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
---
 drivers/net/ethernet/realtek/r8169.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Comments

Francois Romieu March 10, 2012, 10:21 p.m. UTC | #1
Richard Cochran <richardcochran@gmail.com> :
> 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>

It seems ok. It is hooked at the right place.
David Miller March 11, 2012, 10:43 p.m. UTC | #2
From: Francois Romieu <romieu@fr.zoreil.com>
Date: Sat, 10 Mar 2012 23:21:47 +0100

> Richard Cochran <richardcochran@gmail.com> :
>> 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>
> 
> It seems ok. It is hooked at the right place.

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
index c04df3d..4c6041c 100644
--- a/drivers/net/ethernet/realtek/r8169.c
+++ b/drivers/net/ethernet/realtek/r8169.c
@@ -5564,6 +5564,8 @@  static netdev_tx_t rtl8169_start_xmit(struct sk_buff *skb,
 
 	netdev_sent_queue(dev, skb->len);
 
+	skb_tx_timestamp(skb);
+
 	wmb();
 
 	/* Anti gcc 2.95.3 bugware (sic) */