mv643xx_eth: rework receive skb cache alignment
commit7fd96ce47ff83fc17ab78d465d8e067467a7f51e
authorLennert Buytenhek <buytenh@wantstofly.org>
Wed, 6 May 2009 03:01:22 +0000 (6 03:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 May 2009 22:33:39 +0000 (6 15:33 -0700)
tree8267f14b3d6fe21feafe6b8dfd5768fc6010f32f
parentbecfad979d1875aca15ef2a1eda68782e7ac7769
mv643xx_eth: rework receive skb cache alignment

On the platforms that mv643xx_eth is used on, the manual skb->data
alignment logic in mv643xx_eth can be simplified, as the only case we
need to handle is where NET_SKB_PAD is not a multiple of the cache
line size.  If this is the case, the extra padding we need can be
computed at compile time, while if NET_SKB_PAD _is_ a multiple of
the cache line size, the code can be optimised out entirely.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mv643xx_eth.c