diff options
author | Michael Chan <mchan@broadcom.com> | 2007-02-21 02:25:40 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-02-26 14:42:47 -0500 |
commit | 7f62ad5d37f4e43c841e92c6f159c93dcf2d2cdd (patch) | |
tree | f8d0e5d2dcc5e7783ace1f966b9e008278357067 /drivers/net/tg3.h | |
parent | ad930650c0e694233971c56e8de8e78b896e2613 (diff) |
[TG3]: TSO workaround fixes.
1. Add race condition check after netif_stop_queue(). tg3_tx() runs
without netif_tx_lock and can race with tg3_start_xmit_dma_bug() ->
tg3_tso_bug().
2. Firmware TSO in 5703/5704/5705 also have the same TSO limitation,
i.e. they cannot handle TSO headers bigger than 80 bytes. Rename
TG3_FL2_HW_TSO_1_BUG to TG3_FL2_TSO_BUG and set this flag on
these chips as well.
3. Update version to 3.74.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r-- | drivers/net/tg3.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h index 45d477e8f37..086892d8c1f 100644 --- a/drivers/net/tg3.h +++ b/drivers/net/tg3.h | |||
@@ -2227,7 +2227,7 @@ struct tg3 { | |||
2227 | #define TG3_FLAG_INIT_COMPLETE 0x80000000 | 2227 | #define TG3_FLAG_INIT_COMPLETE 0x80000000 |
2228 | u32 tg3_flags2; | 2228 | u32 tg3_flags2; |
2229 | #define TG3_FLG2_RESTART_TIMER 0x00000001 | 2229 | #define TG3_FLG2_RESTART_TIMER 0x00000001 |
2230 | #define TG3_FLG2_HW_TSO_1_BUG 0x00000002 | 2230 | #define TG3_FLG2_TSO_BUG 0x00000002 |
2231 | #define TG3_FLG2_NO_ETH_WIRE_SPEED 0x00000004 | 2231 | #define TG3_FLG2_NO_ETH_WIRE_SPEED 0x00000004 |
2232 | #define TG3_FLG2_IS_5788 0x00000008 | 2232 | #define TG3_FLG2_IS_5788 0x00000008 |
2233 | #define TG3_FLG2_MAX_RXPEND_64 0x00000010 | 2233 | #define TG3_FLG2_MAX_RXPEND_64 0x00000010 |