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

No differences found