Re: Un aligned addresses

From: David S. Miller
Date: Thu Dec 22 2005 - 02:35:24 EST


From: Conio sandiago <coniodiago@xxxxxxxxx>
Date: Thu, 22 Dec 2005 12:06:46 +0530

> After a lot of observation ,
> i observed that i am getting un-aligned addresses of the data payload
> from the TCP/IP stack.because of this problem i always have to do
> memcpy to a word aligned buffer,because of which throughput is reduced
> significantly.

Do skb_reserve(skb, 2), before you give the buffer at
skb->data to the chip, this will align all the headers
correctly.
-
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/