aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-05-07 12:40:28 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-05-07 12:40:28 +0000
commit2166432ba0806a4c24e58db63555c56e4ca6d749 (patch)
treee8d336e5f7a2e4687312ce5aa6cf32987e6c7f42 /target/linux
parent896e1d1ab42af977f5c51fad99f02f228bda953c (diff)
downloadupstream-2166432ba0806a4c24e58db63555c56e4ca6d749.tar.gz
upstream-2166432ba0806a4c24e58db63555c56e4ca6d749.tar.bz2
upstream-2166432ba0806a4c24e58db63555c56e4ca6d749.zip
ar71xx: ag71xx: add timestamps to ag71xx_buf
SVN-Revision: 26844
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h2
-rw-r--r--target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c1
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;