diff options
author | Anton Vorontsov <avorontsov@mvista.com> | 2010-06-30 02:39:13 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-30 14:35:42 -0400 |
commit | deb90eacd084d9edfeda2f714d99c29a86360077 (patch) | |
tree | e0bbd8c70d6f88674d047f2c107772ef63998e9c /drivers/net/gianfar.h | |
parent | 7d3509774c2ef4ffd1c5fd2fac65dc4e071a6f21 (diff) |
gianfar: Implement workaround for eTSEC76 erratum
MPC8313ECE says:
"For TOE=1 huge or jumbo frames, the data required to generate the
checksum may exceed the 2500-byte threshold beyond which the controller
constrains itself to one memory fetch every 256 eTSEC system clocks.
This throttling threshold is supposed to trigger only when the
controller has sufficient data to keep transmit active for the duration
of the memory fetches. The state machine handling this threshold,
however, fails to take large TOE frames into account. As a result,
TOE=1 frames larger than 2500 bytes often see excess delays before start
of transmission."
This patch implements the workaround as suggested by the errata
document, i.e.:
"Limit TOE=1 frames to less than 2500 bytes to avoid excess delays due to
memory throttling.
When using packets larger than 2700 bytes, it is recommended to turn TOE
off."
To be sure, we limit the TOE frames to 2500 bytes, and do software
checksumming instead.
Signed-off-by: Anton Vorontsov <avorontsov@mvista.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 0a0483ce21d2..c414374f407f 100644 --- a/drivers/net/gianfar.h +++ b/drivers/net/gianfar.h | |||
@@ -1027,6 +1027,7 @@ struct gfar_priv_grp { | |||
1027 | 1027 | ||
1028 | enum gfar_errata { | 1028 | enum gfar_errata { |
1029 | GFAR_ERRATA_74 = 0x01, | 1029 | GFAR_ERRATA_74 = 0x01, |
1030 | GFAR_ERRATA_76 = 0x02, | ||
1030 | }; | 1031 | }; |
1031 | 1032 | ||
1032 | /* Struct stolen almost completely (and shamelessly) from the FCC enet source | 1033 | /* Struct stolen almost completely (and shamelessly) from the FCC enet source |