Re: [Bug 2905] New: Aironet 340 PCMCIA card not working since 2.6.7
From: Guennadi Liakhovetski
Date: Fri Jun 18 2004 - 13:34:20 EST
On Fri, 18 Jun 2004, Jesper Juhl wrote:
- skb = dev_alloc_skb( len + hdrlen + 2 );
+ skb = dev_alloc_skb( len + hdrlen + 2 + 2 );
nitpicking, but why not
skb = dev_alloc_skb( len + hdrlen + 4 );
?
Well, I just didn't have my pocket calculator at hand at that moment, so,
I decided to let the compiler compute it for me:-) It's just short for
#define SKB_ALIGN 2
skb = dev_alloc_skb( len + hdrlen + 2 + SKB_ALIGN );
skb_reserve(skb, SKB_ALIGN);
Guennadi
---
Guennadi Liakhovetski
-
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/