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:
1c17216
)
fec: enable transmit and receive time stamping.
author
Richard Cochran
<
[email protected]
>
Sun, 12 Jun 2011 02:18:59 +0000
(
02:18
+0000)
committer
David S. Miller
<
[email protected]
>
Mon, 13 Jun 2011 21:26:13 +0000
(17:26 -0400)
This patch has been tested on the Freescale M5234BCC, which includes the
National Semiconductor DP83640 with IEEE 1588 support.
Cc: Greg Ungerer <
[email protected]
>
Cc: "Uwe Kleine-König" <
[email protected]
>
Cc: Shawn Guo <
[email protected]
>
Signed-off-by: Richard Cochran <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/fec.c
patch
|
blob
|
history
diff --git
a/drivers/net/fec.c
b/drivers/net/fec.c
index 885d8baff7d5804b272c664fbc69fefa0cbf87b8..965fe90e1c20245a19021ac48ec56731adecadf8 100644
(file)
--- a/
drivers/net/fec.c
+++ b/
drivers/net/fec.c
@@
-326,6
+326,8
@@
fec_enet_start_xmit(struct sk_buff *skb, struct net_device *ndev)
spin_unlock_irqrestore(&fep->hw_lock, flags);
+ skb_tx_timestamp(skb);
+
return NETDEV_TX_OK;
}
@@
-650,7
+652,8
@@
fec_enet_rx(struct net_device *ndev)
skb_put(skb, pkt_len - 4); /* Make room */
skb_copy_to_linear_data(skb, data, pkt_len - 4);
skb->protocol = eth_type_trans(skb, ndev);
- netif_rx(skb);
+ if (!skb_defer_rx_timestamp(skb))
+ netif_rx(skb);
}
bdp->cbd_bufaddr = dma_map_single(&fep->pdev->dev, data,