* VIA Velocity massive memory corruption with jumbo frames
@ 2006-02-25 6:38 John Zielinski
2006-02-25 23:53 ` Francois Romieu
0 siblings, 1 reply; 3+ messages in thread
From: John Zielinski @ 2006-02-25 6:38 UTC (permalink / raw)
To: linux-kernel
I just bought a stack of Via Velocity network cards to upgrade my
network. I also purchased a Netgear GS-108 Gigabit switch which has
supports for jumbo frames. When I tried increasing the MTU to 9000 I
started getting massive memory corruption. Some of the symptoms were:
programs failing to load, random oopses, VT freezes, machine freezes,
filesystem corruption, etc. It only happened when the machine was
receiving network traffic. The RX count would not advance either for
that interface.
I tried on another machine and got the same thing. I even set up a
fresh install of Linux with the latest kernel on a test box and got the
same. Dual booting to Windows on that box works perfect with jumbo
frames as well as the other two Windows machines on the network with the
same type of card. I tried three Linux boxes with the same results.
Each box has different hardware and configurations. The original
machine I tried it on is a dual P3-833 machine running 2.6.10 while the
test box is a Celeron 800 with a clean install of 2.6.15.4.
I also tried an MTU of 3000 instead of 9000 and got the same thing.
Anyone know what I should try next?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: VIA Velocity massive memory corruption with jumbo frames
2006-02-25 6:38 VIA Velocity massive memory corruption with jumbo frames John Zielinski
@ 2006-02-25 23:53 ` Francois Romieu
2006-02-26 3:56 ` John Zielinski
0 siblings, 1 reply; 3+ messages in thread
From: Francois Romieu @ 2006-02-25 23:53 UTC (permalink / raw)
To: John Zielinski; +Cc: linux-kernel
John Zielinski <john_ml@undead.cc> :
[...]
> Anyone know what I should try next?
Try the patch below and Cc: netdev@vger.kernel.org on further messages
please.
diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c
index c2d5907..ed1f837 100644
--- a/drivers/net/via-velocity.c
+++ b/drivers/net/via-velocity.c
@@ -1106,6 +1106,9 @@ static void velocity_free_rd_ring(struct
for (i = 0; i < vptr->options.numrx; i++) {
struct velocity_rd_info *rd_info = &(vptr->rd_info[i]);
+ struct rx_desc *rd = vptr->rd_ring + i;
+
+ memset(rd, 0, sizeof(*rd));
if (!rd_info->skb)
continue;
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: VIA Velocity massive memory corruption with jumbo frames
2006-02-25 23:53 ` Francois Romieu
@ 2006-02-26 3:56 ` John Zielinski
0 siblings, 0 replies; 3+ messages in thread
From: John Zielinski @ 2006-02-26 3:56 UTC (permalink / raw)
To: Francois Romieu; +Cc: linux-kernel, netdev
Francois Romieu wrote:
> Try the patch below and Cc: netdev@vger.kernel.org on further messages
> please.
>
It worked. No more memory corruption and I can ping 9000 byte packets
to my Windows box.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-02-26 3:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-25 6:38 VIA Velocity massive memory corruption with jumbo frames John Zielinski
2006-02-25 23:53 ` Francois Romieu
2006-02-26 3:56 ` John Zielinski
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).