Re: [U-Boot] [PATCH 3/2] net/designware: reorder struct dw_eth_dev to pack more efficiently.

2014-05-01 Thread Marek Vasut
On Thursday, May 01, 2014 at 09:01:58 PM, Ian Campbell wrote: > The {tx,rx}_mac_descrtable fields are aligned to ARCH_DMA_MINALIGN, which > could be 256 or even larger. That means there is a potentially huge hole > in the struct before those fields, so move them to the front where they > are better

[U-Boot] [PATCH 3/2] net/designware: reorder struct dw_eth_dev to pack more efficiently.

2014-05-01 Thread Ian Campbell
The {tx,rx}_mac_descrtable fields are aligned to ARCH_DMA_MINALIGN, which could be 256 or even larger. That means there is a potentially huge hole in the struct before those fields, so move them to the front where they are better packed. Moving them to the front also helps ensure that so long as d