ar71xx: ag71xx: add timestamps to ag71xx_buf
authorGabor Juhos <juhosg@openwrt.org>
Sat, 7 May 2011 12:40:28 +0000 (12:40 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sat, 7 May 2011 12:40:28 +0000 (12:40 +0000)
SVN-Revision: 26844

target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c

index 06bdb35c931b08a4c6703096a4c480fd80e2f924..3bcb89609d63bf5622ae319bb2018ef4d4617625 100644 (file)
@@ -91,7 +91,7 @@ struct ag71xx_buf {
        struct sk_buff          *skb;
        struct ag71xx_desc      *desc;
        dma_addr_t              dma_addr;
-       u32                     pad;
+       unsigned long           timestamp;
 };
 
 struct ag71xx_ring {
index eae443e8ceea8ff84ea35f7201870e04a8a28908..2b28faab7a97f0bfb55942e9b5edde96f77e97c3 100644 (file)
@@ -652,6 +652,7 @@ static netdev_tx_t ag71xx_hard_start_xmit(struct sk_buff *skb,
                                  DMA_TO_DEVICE);
 
        ring->buf[i].skb = skb;
+       ring->buf[i].timestamp = jiffies;
 
        /* setup descriptor fields */
        desc->data = (u32) dma_addr;