]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[TG3]: disallow jumbo TSO on 5780
authorMichael Chan <mchan@broadcom.com>
Mon, 25 Jul 2005 19:32:25 +0000 (12:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jul 2005 19:32:25 +0000 (12:32 -0700)
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>
drivers/net/tg3.c

index 2b7d99fc257c0aac417e2e74e57e63830af5c0d6..04d8b18e2912af41a6896e2addd4539b0b239e35 100644 (file)
@@ -3443,10 +3443,18 @@ static inline void tg3_set_mtu(struct net_device *dev, struct tg3 *tp,
 {
        dev->mtu = new_mtu;
 
-       if (new_mtu > ETH_DATA_LEN)
-               tp->tg3_flags |= TG3_FLAG_JUMBO_RING_ENABLE;
-       else
+       if (new_mtu > ETH_DATA_LEN) {
+               if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5780) {
+                       tp->tg3_flags2 &= ~TG3_FLG2_TSO_CAPABLE;
+                       ethtool_op_set_tso(dev, 0);
+               }
+               else
+                       tp->tg3_flags |= TG3_FLAG_JUMBO_RING_ENABLE;
+       } else {
+               if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5780)
+                       tp->tg3_flags2 |= TG3_FLG2_TSO_CAPABLE;
                tp->tg3_flags &= ~TG3_FLAG_JUMBO_RING_ENABLE;
+       }
 }
 
 static int tg3_change_mtu(struct net_device *dev, int new_mtu)