Thread (1 message) 1 message, 1 author, 2007-11-27

Re: wireless vs. alignment requirements

From: H. Peter Anvin <hidden>
Date: 2007-11-27 17:16:07
Also in: linux-wireless

Stephen Hemminger wrote:
Herbert Xu wrote:
quoted
On Sat, Nov 24, 2007 at 02:49:36PM +0100, Johannes Berg wrote:
 
quoted
Right. I just didn't think that would be a valid value for an
architecture to set.
    
OK.  Let me clarify this a bit more.  We require at least one
of the following rules to be met:

* the IPv4/IPv6 header is aligned by 8 bytes on reception;
* or the platform provides unaligned exception handlers.

So if your platform violates both rules then it won't work with
the IP stack, simple as that.  Fortunately I don't think such a
platform exists currently on Linux.

Cheers,
  
Then what about hardware that can't dma ethernet to non-aligned address.
Sky2 hardware breaks if DMA is not 8 byte aligned.  IMHO the IP stack 
should handle any alignment, and do the appropriate memove if the CPU requires 
alignment.
I wrote a patch for the IP stack to realign packets if necessary at one 
point.  I should dredge it up again and submit it for collective flamage.

	-hpa
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help