pxa168_eth: enable transmit time stamping.
authorRichard Cochran <[email protected]>
Sun, 19 Jun 2011 21:51:31 +0000 (21:51 +0000)
committerDavid S. Miller <[email protected]>
Mon, 20 Jun 2011 20:56:55 +0000 (13:56 -0700)
This patch enables software (and phy device) transmit time stamping
Compile tested only.

Cc: Sachin Sanap <[email protected]>
Cc: Zhangfei Gao <[email protected]>
Cc: Philip Rakity <[email protected]>
Cc: Mark Brown <[email protected]>
Signed-off-by: Richard Cochran <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/pxa168_eth.c

index 89f7540d90f909708fa318dbe9ecf6458252a922..e224740c6e2af9df3d094bbaba7f602c6095e664 100644 (file)
@@ -1267,6 +1267,9 @@ static int pxa168_eth_start_xmit(struct sk_buff *skb, struct net_device *dev)
        pep->tx_skb[tx_index] = skb;
        desc->byte_cnt = length;
        desc->buf_ptr = dma_map_single(NULL, skb->data, length, DMA_TO_DEVICE);
+
+       skb_tx_timestamp(skb);
+
        wmb();
        desc->cmd_sts = BUF_OWNED_BY_DMA | TX_GEN_CRC | TX_FIRST_DESC |
                        TX_ZERO_PADDING | TX_LAST_DESC | TX_EN_INT;