Re: NS83820 2.6.0-test5 driver seems unstable on IA64

From: Andi Kleen
Date: Fri Sep 19 2003 - 00:54:02 EST


> This is what I changed:
>
> ===== drivers/net/ns83820.c 1.19 vs edited =====
> --- 1.19/drivers/net/ns83820.c Thu Jun 5 13:50:00 2003
> +++ edited/drivers/net/ns83820.c Fri Sep 19 13:49:23 2003
> @@ -567,7 +567,7 @@
> res = (long)skb->tail & 0xf;
> res = 0x10 - res;
> res &= 0xf;
> - skb_reserve(skb, res);
> + skb_reserve(skb, res+2);

You must add the 2 bytes in dev_alloc_skb() too.

(it also add 16 bytes by itself, but they are used for other things)

-Andi
-
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/