From: Lennert Buytenhek Date: Wed, 6 May 2009 03:01:22 +0000 (+0000) Subject: mv643xx_eth: rework receive skb cache alignment X-Git-Tag: v2.6.31-rc1~330^2~470 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fd96ce47ff83fc17ab78d465d8e067467a7f51e;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed