ar71xx: ag71xx: add timestamps to ag71xx_buf
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26844 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
3c6c9f5866
commit
c37636c223
|
@ -91,7 +91,7 @@ struct ag71xx_buf {
|
||||||
struct sk_buff *skb;
|
struct sk_buff *skb;
|
||||||
struct ag71xx_desc *desc;
|
struct ag71xx_desc *desc;
|
||||||
dma_addr_t dma_addr;
|
dma_addr_t dma_addr;
|
||||||
u32 pad;
|
unsigned long timestamp;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ag71xx_ring {
|
struct ag71xx_ring {
|
||||||
|
|
|
@ -652,6 +652,7 @@ static netdev_tx_t ag71xx_hard_start_xmit(struct sk_buff *skb,
|
||||||
DMA_TO_DEVICE);
|
DMA_TO_DEVICE);
|
||||||
|
|
||||||
ring->buf[i].skb = skb;
|
ring->buf[i].skb = skb;
|
||||||
|
ring->buf[i].timestamp = jiffies;
|
||||||
|
|
||||||
/* setup descriptor fields */
|
/* setup descriptor fields */
|
||||||
desc->data = (u32) dma_addr;
|
desc->data = (u32) dma_addr;
|
||||||
|
|
Loading…
Reference in New Issue