atl1: disable TSO by default
Subsystems (2)
PATCH 1/1 atl1: disable TSO by default
The atl1 driver is causing stalled connections and file corruption whenever TSO is enabled. Two examples are here:
http://lkml.org/lkml/2008/7/15/325
http://lkml.org/lkml/2008/8/18/543
Disable TSO by default until we can determine the source of the problem.
---
Jeff, I've been trying to find the source of this problem in my spare time for a few weeks now, but haven't been successful. We turned on TSO by default in 2.6.26 after fixing a nasty performance bug in it, but there's apparently another bug lurking.
This patch needs to be also applied to 2.6.26, hence the cc to stable.
drivers/net/atlx/atl1.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/net/atlx/atl1.c +0 -1
@@ -3022,7 +3022,6 @@ static int __devinit atl1_probe(struct pci_dev *pdev, netdev->features =NETIF_F_HW_CSUM ; netdev->features |=NETIF_F_SG ; netdev->features |= (NETIF_F_HW_VLAN_TX |NETIF_F_HW_VLAN_RX ); - netdev->features |=NETIF_F_TSO ; netdev->features |=NETIF_F_LLTX ;/*
Signature · 1 line
1.5.5.1
drivers/net/atlx/atl1.c static int __devinit atl1_probe(struct pci_dev *pdev, · line 3025
Quoted 11 lines · Jay Cliburn
drivers/net/atlx/atl1.c +0
-1@@ -3022,7 +3022,6 @@ static int __devinit atl1_probe(struct pci_dev *pdev, netdev->features =NETIF_F_HW_CSUM ; netdev->features |=NETIF_F_SG ; netdev->features |= (NETIF_F_HW_VLAN_TX |NETIF_F_HW_VLAN_RX ); - netdev->features |=NETIF_F_TSO ; netdev->features |=NETIF_F_LLTX ;
Another new driver using LLTX, this is not good when we're trying to get rid of it.
Perhaps we could just kill it by ignoring the LLTX flag and always grabbing the xmit lock. That should be safe as long as none of these drivers grab the xmit lock within their private locks.
LLTX drivers will be a tad slower, but that should encourage them to stop using it :)
Cheers,
Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txtQuoted 6 lines · On Tue, 19 Aug 2008 23:10:37 +1000 Herbert Xu <[email protected]>…
Quoted 1 line · Jay Cliburn
netdev->features |= NETIF_F_LLTX;Another new driver using LLTX, this is not good when we're trying to get rid of it.
The atl1 driver was merged in the spring of 2007, so I'm not sure I consider it new (but your kernel development time horizon is undoubtedly *way* longer than mine, so you may indeed consider it new). It was basically a vendor driver that we modified to conform to kernel coding standards. It started life, we believe, as pretty much a clone of the e1000 driver circa 2005, so that's likely where it's use of LLTX came from.
Quoted 4 lines
Perhaps we could just kill it by ignoring the LLTX flag and always grabbing the xmit lock. That should be safe as long as none of these drivers grab the xmit lock within their private locks.
I'd be happy to gin up a patch if you could point me to a driver that implements properly what you're asking.
Thanks,
Jay
David Miller
maintainerFrom: Jay Cliburn <[email protected]>
Date: Tue, 19 Aug 2008 17:53:34 -0500
Quoted 10 lines
Quoted 6 lines · On Tue, 19 Aug 2008 23:10:37 +1000 Herbert Xu <[email protected]>…
Quoted 1 line · Jay Cliburn
netdev->features |= NETIF_F_LLTX;Another new driver using LLTX, this is not good when we're trying to get rid of it.
Quoted 7 lines
The atl1 driver was merged in the spring of 2007, so I'm not sure I consider it new (but your kernel development time horizon is undoubtedly *way* longer than mine, so you may indeed consider it new). It was basically a vendor driver that we modified to conform to kernel coding standards. It started life, we believe, as pretty much a clone of the e1000 driver circa 2005, so that's likely where it's use of LLTX came from.
You'll have to forgive us, as we often have a knee jerk reaction to seeing LLTX anywhere :-)
Quoted 6 lines
Quoted 3 lines
Perhaps we could just kill it by ignoring the LLTX flag and always grabbing the xmit lock. That should be safe as long as none of these drivers grab the xmit lock within their private locks.
I'd be happy to gin up a patch if you could point me to a driver that implements properly what you're asking.
TG3 is a good example, but that's just my heavily slanted opinion.
What your work should amount to is:
1) Eliminate local driver TX spinlock.
2) Stop taking #1 in ->hard_start_xmit()
3) Where you take #1 elsewhere, replace with netif_tx_lock() and friends.
4) Stop setting NETIF_F_LLTX.
That should do it, but of course there are usually other details.
Quoted 11 lines · David Miller
Quoted 8 lines
The atl1 driver was merged in the spring of 2007, so I'm not sure I consider it new (but your kernel development time horizon is undoubtedly *way* longer than mine, so you may indeed consider it new). It was basically a vendor driver that we modified to conform to kernel coding standards. It started life, we believe, as pretty much a clone of the e1000 driver circa 2005, so that's likely where it's use of LLTX came from.
You'll have to forgive us, as we often have a knee jerk reaction to seeing LLTX anywhere :-)
Heh, it's like seeing a fly in your soup :)
However, this does seem to be proliferating to some extent although I picked on the wrong driver. The one I saw that was new is actually drivers/net/atl1e which seems to have copied the same code across.
Cheers,
Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txtJeff Garzik
AppliedQuoted 18 lines · Jay Cliburn
The atl1 driver is causing stalled connections and file corruption whenever TSO is enabled. Two examples are here:
http://lkml.org/lkml/2008/7/15/325
http://lkml.org/lkml/2008/8/18/543Disable TSO by default until we can determine the source of the problem.
Signed-off-by Jay Cliburn <[email protected]>---
Jeff, I've been trying to find the source of this problem in my spare time for a few weeks now, but haven't been successful. We turned on TSO by default in 2.6.26 after fixing a nasty performance bug in it, but there's apparently another bug lurking.
Quoted 5 lines
This patch needs to be also applied to 2.6.26, hence the cc to stable.
drivers/net/atlx/atl1.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
applied