diff options
author | Alex Dubov <oakad@yahoo.com> | 2011-03-16 17:57:13 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-18 15:12:14 -0700 |
commit | 4363c2fddb1399b728ef21ee8101c148a311ea45 (patch) | |
tree | 5baa32b3a56277d2c1683bbfa3f8cce432908e37 /drivers/net/gianfar.h | |
parent | 99759619b27662d1290901228d77a293e6e83200 (diff) | |
download | op-kernel-dev-4363c2fddb1399b728ef21ee8101c148a311ea45.zip op-kernel-dev-4363c2fddb1399b728ef21ee8101c148a311ea45.tar.gz |
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>
Diffstat (limited to 'drivers/net/gianfar.h')
-rw-r--r-- | drivers/net/gianfar.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/gianfar.h b/drivers/net/gianfar.h index 54de413..ec5d595 100644 --- a/drivers/net/gianfar.h +++ b/drivers/net/gianfar.h @@ -1039,6 +1039,7 @@ enum gfar_errata { GFAR_ERRATA_74 = 0x01, GFAR_ERRATA_76 = 0x02, GFAR_ERRATA_A002 = 0x04, + GFAR_ERRATA_12 = 0x08, /* a.k.a errata eTSEC49 */ }; /* Struct stolen almost completely (and shamelessly) from the FCC enet source |