From: Matt Carlson Date: Sat, 22 Nov 2008 01:16:16 +0000 (-0800) Subject: tg3: Use NET_IP_ALIGN X-Git-Tag: v2.6.29-rc1~581^2~578 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad8292681a629cdb16bb19ee7d721b457c32a23a;p=pandora-kernel.git tg3: Use NET_IP_ALIGN This patch replaces hardcoded 2's with the NET_IP_ALIGN constant or TG3_RAW_IP_ALIGN where appropriate. Some platforms can redefine the NET_IP_ALIGN definition to zero if unaligned DMA transfers cost more than the IP header alignment gains. This patch represents a performance improvement when using the 5701 on these platforms. The copy path can be avoided. TG3_RAW_IP_ALIGN is used in cases where we always want to align the IP header on dword boundaries. Signed-off-by: Matt Carlson Signed-off-by: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed