LWN.net Logo

Re: Allow IP header alignment to be overriden

From:  "David S. Miller" <davem-AT-redhat.com>
To:  Anton Blanchard <anton-AT-samba.org>
Subject:  Re: Allow IP header alignment to be overriden
Date:  Thu, 10 Jun 2004 22:35:49 -0700
Cc:  netdev-AT-oss.sgi.com

On Fri, 11 Jun 2004 11:27:27 +1000
Anton Blanchard <anton@samba.org> wrote:

> The following patch creates skb_align and allows an architecture to
> override it. Thoughts?

This transformation is not valid for a lot of drivers, that "2"
in the reserve exists elsewhere in other calculations in the
drivers.  For example, it is added to the RX skb allocation
size.  Sometimes this '2' is there in non-trivial or hard to
see ways (ie. it's implicitly in some DMA alignment value)

That's the only reason I'm against this patch.



(Log in to post comments)

Copyright © 2004, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds