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.