Re: VIA Velocity massive memory corruption with jumbo frames

From: Francois Romieu
Date: Sat Feb 25 2006 - 18:53:33 EST


John Zielinski <john_ml@xxxxxxxxx> :
[...]
> Anyone know what I should try next?

Try the patch below and Cc: netdev@xxxxxxxxxxxxxxx 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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/