summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Cochran <richardcochran@gmail.com>2011-06-19 21:51:26 +0000
committerDavid S. Miller <davem@davemloft.net>2011-06-20 13:56:54 -0700
commit93e0ed158c15b3d3d76125de6364f8f95528c25a (patch)
tree6203c6eb9253c58b4dd4d4d8a89f73730bed9640
parent570773c5801cc6c322534d6b1d1551e23664103e (diff)
downloadblackbird-op-linux-93e0ed158c15b3d3d76125de6364f8f95528c25a.tar.gz
blackbird-op-linux-93e0ed158c15b3d3d76125de6364f8f95528c25a.zip
ll_temac: enable transmit and receive time stamping.
This patch enables software (and phy device) time stamping. Since this MAC is based on phylib, adding the hooks makes hardware time stamping in the phy possible. Compile tested only. Cc: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Richard Cochran <richard.cochran@omicron.at> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ll_temac_main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ll_temac_main.c b/drivers/net/ll_temac_main.c
index e7b8afec73a1..e3f19255af28 100644
--- a/drivers/net/ll_temac_main.c
+++ b/drivers/net/ll_temac_main.c
@@ -728,6 +728,8 @@ static int temac_start_xmit(struct sk_buff *skb, struct net_device *ndev)
if (lp->tx_bd_tail >= TX_BD_NUM)
lp->tx_bd_tail = 0;
+ skb_tx_timestamp(skb);
+
/* Kick off the transfer */
lp->dma_out(lp, TX_TAILDESC_PTR, tail_p); /* DMA start */
@@ -773,7 +775,8 @@ static void ll_temac_recv(struct net_device *ndev)
skb->ip_summed = CHECKSUM_COMPLETE;
}
- netif_rx(skb);
+ if (!skb_defer_rx_timestamp(skb))
+ netif_rx(skb);
ndev->stats.rx_packets++;
ndev->stats.rx_bytes += length;
OpenPOWER on IntegriCloud