diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-05-07 12:40:28 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-05-07 12:40:28 +0000 |
commit | c37636c2236c4cd257aab7a29711b45dac63d6d9 (patch) | |
tree | ae5af66fe0a7d7d83bff18c3bc39ae01d9e553d7 /target/linux/ar71xx | |
parent | 3c6c9f58665024f7a3fcca1db765e9d490fe49ef (diff) | |
download | master-187ad058-c37636c2236c4cd257aab7a29711b45dac63d6d9.tar.gz master-187ad058-c37636c2236c4cd257aab7a29711b45dac63d6d9.tar.bz2 master-187ad058-c37636c2236c4cd257aab7a29711b45dac63d6d9.zip |
ar71xx: ag71xx: add timestamps to ag71xx_buf
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26844 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h | 2 | ||||
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h index 06bdb35c93..3bcb89609d 100644 --- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h +++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h @@ -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 { diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c index eae443e8ce..2b28faab7a 100644 --- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c +++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c @@ -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; |