summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale/gianfar.c
diff options
context:
space:
mode:
authorClaudiu Manoil <claudiu.manoil@freescale.com>2013-01-29 03:55:10 +0000
committerDavid S. Miller <davem@davemloft.net>2013-01-29 15:22:02 -0500
commit0cd3fdea07d8e0f0f5bac7534892b785af37e387 (patch)
tree0592b37e4c30e05db534d1ee4b87551fb131b1d3 /drivers/net/ethernet/freescale/gianfar.c
parent243bb4c6d731f886ac7a99b986e46625f0d5ba07 (diff)
gianfar: Optimize struct gfar_priv_tx_q for two cache lines
Resize and regroup structure members to eliminate memory holes and to pack the structure into 2 cache lines (from 3). tx_ring_size was resized from 4 to 2 bytes and few members were re-grouped in order to eliminate byte holes and achieve compactness. Where possible, few members were grouped according to their usage and access order (i.e. start_xmit vs. clean_tx_ring members), less important members were pushed at the end. Signed-off-by: Claudiu Manoil <claudiu.manoil@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale/gianfar.c')
0 files changed, 0 insertions, 0 deletions