stmmac: review private structure fields
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Mon, 8 Apr 2013 02:10:02 +0000 (02:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2013 20:55:27 +0000 (16:55 -0400)
commit1bb6dea8cc208e6bac824fcdaa3dc63d38901ca7
tree23e495b81b81d2dbaa0f3dd11ad3f700faf65a5a
parentceb694997e1b5d45627553ac7b1f88ff16cb9507
stmmac: review private structure fields

recently many new supports have been added in the stmmac driver w/o taking care
about where each new field had to be placed inside the private structure for
guaranteeing the best cache usage.
This is what I wanted in the beginning, so this patch reorganizes all the fields
in order to keep adjacent fields for cache effect.
I have also tried to optimize them by using pahole.

V2: do not abuse with ____cacheline_aligned_in_smp and keep fields that
potentially could stay in the same cache-line for better usage in SMP systems.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac.h