projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ca9495
)
tg3: enable transmit time stamping.
author
Richard Cochran
<
[email protected]
>
Sun, 12 Jun 2011 02:19:02 +0000
(
02:19
+0000)
committer
David S. Miller
<
[email protected]
>
Mon, 13 Jun 2011 21:26:15 +0000
(17:26 -0400)
This patch enables software (and phy device) transmit time stamping
for the TIGON3 driver. Compile tested only.
Cc: Matt Carlson <
[email protected]
>
Cc: Michael Chan <
[email protected]
>
Signed-off-by: Richard Cochran <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/tg3.c
patch
|
blob
|
history
diff --git
a/drivers/net/tg3.c
b/drivers/net/tg3.c
index c8a145d72f1719586547e8c51d768035a90b5109..aa1d1defc820a7e542eb32d7f7944f655867829c 100644
(file)
--- a/
drivers/net/tg3.c
+++ b/
drivers/net/tg3.c
@@
-6092,6
+6092,8
@@
static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, struct net_device *dev)
/* Packets are ready, update Tx producer idx local and on card. */
tw32_tx_mbox(tnapi->prodmbox, entry);
+ skb_tx_timestamp(skb);
+
tnapi->tx_prod = entry;
if (unlikely(tg3_tx_avail(tnapi) <= (MAX_SKB_FRAGS + 1))) {
netif_tx_stop_queue(txq);