gianfar: Fall back to software tcp/udp checksum on older controllers
authorAlex Dubov <oakad@yahoo.com>
Wed, 16 Mar 2011 17:57:13 +0000 (17:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Mar 2011 22:12:14 +0000 (15:12 -0700)
commit4363c2fddb1399b728ef21ee8101c148a311ea45
tree5baa32b3a56277d2c1683bbfa3f8cce432908e37
parent99759619b27662d1290901228d77a293e6e83200
gianfar: Fall back to software tcp/udp checksum on older controllers

As specified by errata eTSEC49 of MPC8548 and errata eTSEC12 of MPC83xx,
older revisions of gianfar controllers will be unable to calculate a TCP/UDP
packet checksum for some alignments of the appropriate FCB. This patch checks
for FCB alignment on such controllers and falls back to software checksumming
if the alignment is known to be bad.

Signed-off-by: Alex Dubov <oakad@yahoo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gianfar.c
drivers/net/gianfar.h