diff options
author | Michael Chan <mchan@broadcom.com> | 2006-03-20 17:47:44 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-20 17:47:44 -0800 |
commit | 4e3a7aaa28db952392814f889dfbd25672266d29 (patch) | |
tree | a82c9151a64951e8812b269dbb00b00b2f759ea3 /drivers | |
parent | d4d2c558fd3e1f5e386b153f194aa8f0be496c77 (diff) | |
download | op-kernel-dev-4e3a7aaa28db952392814f889dfbd25672266d29.zip op-kernel-dev-4e3a7aaa28db952392814f889dfbd25672266d29.tar.gz |
[TG3]: Enable TSO by default
Enable TSO by default on newer chips that support TSO in hardware.
Leave TSO off by default on older chips that do firmware TSO because
performance is slightly lower.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/tg3.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index b0de6b2..7deebd7 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c @@ -10881,11 +10881,12 @@ static int __devinit tg3_init_one(struct pci_dev *pdev, tp->tg3_flags2 |= TG3_FLG2_TSO_CAPABLE; } - /* TSO is off by default, user can enable using ethtool. */ -#if 0 - if (tp->tg3_flags2 & TG3_FLG2_TSO_CAPABLE) + /* TSO is on by default on chips that support hardware TSO. + * Firmware TSO on older chips gives lower performance, so it + * is off by default, but can be enabled using ethtool. + */ + if (tp->tg3_flags2 & TG3_FLG2_HW_TSO) dev->features |= NETIF_F_TSO; -#endif #endif |