Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - devn-gigE-for-SoC-that-wants-packets-aligned-to-int32: (3 Items)
   
devn-gigE-for-SoC-that-wants-packets-aligned-to-int32  
I'm working with an SoC that needs packets aligned to a 4-byte boundary.  io-net doesn't do this, so this devn-xxx needs
 an aligned trampoline buffer.

Can we force the new stack to align on 4-byte boundary?  Do we still need a trampoline?

Thanks,
-david
Re: devn-gigE-for-SoC-that-wants-packets-aligned-to-int32  
On Fri, Jan 11, 2008 at 12:53:00PM -0500, David Alessio wrote:
> I'm working with an SoC that needs packets aligned to a 4-byte boundary.  io-net doesn't do this, so this devn-xxx 
needs an aligned trampoline buffer.
> 
> Can we force the new stack to align on 4-byte boundary?  Do we still need a trampoline?

The driver can't assume any particular alignment on packets
it's asked to tx.  Often though you don't need to copy the
whole packet to align it.  If an extra descriptor fragment
can be added to the front of it at most (align - 1) bytes
need to be copied.

-seanb
Re: devn-gigE-for-SoC-that-wants-packets-aligned-to-int32  
Hi Sean, Thanks for the reply.  I don't know how we can pad the front of a frame, but your suggestions is valid.  You've
 given me a few ideas on how to do this without a copy.  Thanks, -david