ar71xx: ethernet: cache skb->len in the tx function to avoid accessing it again in...
[openwrt/openwrt.git] / target / linux / ar71xx / files / drivers / net / ethernet / atheros / ag71xx / ag71xx.h
index b9d95adaf62fc6bcb3a05ad64ba73a04232a65fe..6d51e722b0cd7a0b97a65557d36cade994c6fc61 100644 (file)
@@ -91,8 +91,11 @@ struct ag71xx_buf {
                void            *rx_buf;
        };
        struct ag71xx_desc      *desc;
-       dma_addr_t              dma_addr;
-       unsigned long           timestamp;
+       union {
+               dma_addr_t      dma_addr;
+               unsigned long   timestamp;
+       };
+       unsigned int            len;
 };
 
 struct ag71xx_ring {