Matt Carlson ad8292681a 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 <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-11-21 17:16:16 -08:00
..
2008-11-19 18:50:00 -08:00
2008-10-28 17:46:02 +09:00
2008-11-14 14:10:01 +01:00
2008-11-13 15:37:07 +09:00
2008-11-01 09:49:46 -07:00
2008-11-01 09:50:12 -07:00
2008-11-19 18:49:57 -08:00
2008-11-21 17:16:16 -08:00
2008-10-27 19:15:41 +01:00
2008-11-19 21:40:23 -08:00
2008-11-04 08:18:19 -08:00
2008-11-04 08:18:19 -08:00
2008-11-01 09:49:46 -07:00
2008-11-19 18:50:00 -08:00
2008-11-17 19:11:26 +01:00
2008-10-28 21:47:17 +00:00