diff options
author | Richard Cochran <richardcochran@gmail.com> | 2011-06-19 17:51:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-20 16:56:54 -0400 |
commit | e072092fc7a89178736530f51a4daaa3155cf44b (patch) | |
tree | 98253201d5e59b7265d62ca0965a60fc7776ed9e | |
parent | d6cf07327e691e8f7c0f08af69d0dd3887aa1e4f (diff) |
macb: enable transmit time stamping.
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>
-rw-r--r-- | 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 818f0b8c2772..dcf6011b136c 100644 --- 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) | |||
670 | entry = NEXT_TX(entry); | 670 | entry = NEXT_TX(entry); |
671 | bp->tx_head = entry; | 671 | bp->tx_head = entry; |
672 | 672 | ||
673 | skb_tx_timestamp(skb); | ||
674 | |||
673 | macb_writel(bp, NCR, macb_readl(bp, NCR) | MACB_BIT(TSTART)); | 675 | macb_writel(bp, NCR, macb_readl(bp, NCR) | MACB_BIT(TSTART)); |
674 | 676 | ||
675 | if (TX_BUFFS_AVAIL(bp) < 1) | 677 | if (TX_BUFFS_AVAIL(bp) < 1) |