projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6cf073
)
macb: enable transmit time stamping.
author
Richard Cochran
<richardcochran@gmail.com>
Sun, 19 Jun 2011 21:51:28 +0000
(21:51 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 20 Jun 2011 20:56:54 +0000
(13:56 -0700)
This patch enables software (and phy device) transmit time stamping
Compile tested only.
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macb.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/macb.c
b/drivers/net/macb.c
index 818f0b8c277234eddf992ce185169d359b46b709..dcf6011b136c1fd0cfdbb4492a28094bd273a145 100644
(file)
--- a/
drivers/net/macb.c
+++ b/
drivers/net/macb.c
@@
-670,6
+670,8
@@
static int macb_start_xmit(struct sk_buff *skb, struct net_device *dev)
entry = NEXT_TX(entry);
bp->tx_head = entry;
+ skb_tx_timestamp(skb);
+
macb_writel(bp, NCR, macb_readl(bp, NCR) | MACB_BIT(TSTART));
if (TX_BUFFS_AVAIL(bp) < 1)