diff options
author | Michael Chan <mchan@broadcom.com> | 2005-07-25 15:32:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-07-25 15:32:25 -0400 |
commit | ef7f5ec0deb2bcdc005f30f6f75f79c65c577cf5 (patch) | |
tree | 6a908c087b4ae41b593296136bc35b99fb2a9231 /drivers/net/tg3.c | |
parent | fdfec1726b14b4b2121adcfcbba98d4cc1a61751 (diff) |
[TG3]: disallow jumbo TSO on 5780
Disallow jumbo TSO on 5780 due to hardware restrictions.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 2b7d99fc257c..04d8b18e2912 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -3443,10 +3443,18 @@ static inline void tg3_set_mtu(struct net_device *dev, struct tg3 *tp, | |||
3443 | { | 3443 | { |
3444 | dev->mtu = new_mtu; | 3444 | dev->mtu = new_mtu; |
3445 | 3445 | ||
3446 | if (new_mtu > ETH_DATA_LEN) | 3446 | if (new_mtu > ETH_DATA_LEN) { |
3447 | tp->tg3_flags |= TG3_FLAG_JUMBO_RING_ENABLE; | 3447 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5780) { |
3448 | else | 3448 | tp->tg3_flags2 &= ~TG3_FLG2_TSO_CAPABLE; |
3449 | ethtool_op_set_tso(dev, 0); | ||
3450 | } | ||
3451 | else | ||
3452 | tp->tg3_flags |= TG3_FLAG_JUMBO_RING_ENABLE; | ||
3453 | } else { | ||
3454 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5780) | ||
3455 | tp->tg3_flags2 |= TG3_FLG2_TSO_CAPABLE; | ||
3449 | tp->tg3_flags &= ~TG3_FLAG_JUMBO_RING_ENABLE; | 3456 | tp->tg3_flags &= ~TG3_FLAG_JUMBO_RING_ENABLE; |
3457 | } | ||
3450 | } | 3458 | } |
3451 | 3459 | ||
3452 | static int tg3_change_mtu(struct net_device *dev, int new_mtu) | 3460 | static int tg3_change_mtu(struct net_device *dev, int new_mtu) |