diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-12-05 14:40:32 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-02-05 10:16:25 +0100 |
commit | 798497c66e6a67d9dbad096c041e855abe0ee662 (patch) | |
tree | 1f9eddccf20ce1b84313f3910feaf83079fe7cf0 /target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h | |
parent | 31e6016d2e41199b22577b429b8691526a4359f6 (diff) | |
download | upstream-798497c66e6a67d9dbad096c041e855abe0ee662.tar.gz upstream-798497c66e6a67d9dbad096c041e855abe0ee662.tar.bz2 upstream-798497c66e6a67d9dbad096c041e855abe0ee662.zip |
ar71xx: use global timestamp for hang check
Shrink the size of struct ag71xx_buf to 8 bytes, which improves cache
footprint
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h index 5ead6b316a..38dcc915f9 100644 --- a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h +++ b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx.h @@ -100,9 +100,8 @@ struct ag71xx_buf { }; union { dma_addr_t dma_addr; - unsigned long timestamp; + unsigned int len; }; - unsigned int len; }; struct ag71xx_ring { @@ -170,6 +169,8 @@ struct ag71xx { struct napi_struct napi; u32 msg_enable; + unsigned long timestamp; + /* * From this point onwards we're not looking at per-packet fields. */ |