* [PATCH] sky2: disable rx checksum on Yukon XL
@ 2007-11-21 22:55 Stephen Hemminger
2007-11-24 3:10 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2007-11-21 22:55 UTC (permalink / raw)
To: Jeff Garzik; +Cc: netdev
The Marvell Yukon XL chipset appears to have a hardware glitch
where it will repeat the checksum of the last packet. Of course, this is
timing sensitive and only happens sometimes...
More info: http://bugzilla.kernel.org/show_bug.cgi?id=9381
As a workaround just disable hardware checksumming by default on
this chip version. The earlier workaround for PCIX, dual port
was also on Yukon XL so don't need to disable checksumming there.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
--- a/drivers/net/sky2.c 2007-11-21 13:53:33.000000000 -0800
+++ b/drivers/net/sky2.c 2007-11-21 13:59:09.000000000 -0800
@@ -1320,15 +1320,11 @@ static int sky2_up(struct net_device *de
*/
if (otherdev && netif_running(otherdev) &&
(cap = pci_find_capability(hw->pdev, PCI_CAP_ID_PCIX))) {
- struct sky2_port *osky2 = netdev_priv(otherdev);
u16 cmd;
pci_read_config_word(hw->pdev, cap + PCI_X_CMD, &cmd);
cmd &= ~PCI_X_CMD_MAX_SPLIT;
pci_write_config_word(hw->pdev, cap + PCI_X_CMD, cmd);
-
- sky2->rx_csum = 0;
- osky2->rx_csum = 0;
}
if (netif_msg_ifup(sky2))
@@ -4013,7 +4009,7 @@ static __devinit struct net_device *sky2
sky2->duplex = -1;
sky2->speed = -1;
sky2->advertising = sky2_supported_modes(hw);
- sky2->rx_csum = 1;
+ sky2->rx_csum = (hw->chip_id != CHIP_ID_YUKON_XL);
sky2->wol = wol;
spin_lock_init(&sky2->phy_lock);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] sky2: disable rx checksum on Yukon XL
2007-11-21 22:55 [PATCH] sky2: disable rx checksum on Yukon XL Stephen Hemminger
@ 2007-11-24 3:10 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2007-11-24 3:10 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: netdev
Stephen Hemminger wrote:
> The Marvell Yukon XL chipset appears to have a hardware glitch
> where it will repeat the checksum of the last packet. Of course, this is
> timing sensitive and only happens sometimes...
>
> More info: http://bugzilla.kernel.org/show_bug.cgi?id=9381
>
> As a workaround just disable hardware checksumming by default on
> this chip version. The earlier workaround for PCIX, dual port
> was also on Yukon XL so don't need to disable checksumming there.
>
> Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
applied #upstream-fixes
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-24 3:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-21 22:55 [PATCH] sky2: disable rx checksum on Yukon XL Stephen Hemminger
2007-11-24 3:10 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).