Thread (26 messages) read the whole thread 26 messages, 4 authors, 2011-06-22

Re: [PATCH 06/11] macb: enable transmit time stamping.

From: Eric Dumazet <hidden>
Date: 2011-06-19 11:56:50

Le dimanche 19 juin 2011 à 13:20 +0200, Richard Cochran a écrit :
quoted hunk ↗ jump to hunk
This patch enables software (and phy device) transmit time stamping
Compile tested only.

Cc: Nicolas Ferre <redacted>
Signed-off-by: Richard Cochran <redacted>
---
 drivers/net/macb.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index 6c6a028..6944478 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -676,6 +676,8 @@ static int macb_start_xmit(struct sk_buff *skb, struct net_device *dev)
 
 	spin_unlock_irqrestore(&bp->lock, flags);
 
+	skb_tx_timestamp(skb);
+
 	return NETDEV_TX_OK;
 }
 
Same problem here, its not safe.


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help