lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] byte alignment


From: Tyrel Newton
Subject: Re: [lwip-users] byte alignment
Date: Tue, 04 May 2010 09:44:37 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4


It might help some of us to help you if you can tell us about the system
you're using.  Unless this is a custom processor, someone here has probably
used what you're using and can tell you what is best to do.  If your MAC has
some facility to read in a packet with a +2 offset (it's still 32-bit
aligned - they just prefix 0's to the frame) then you can receive a frame on
a 32-bit boundary and the actual packet is at offset +2, which makes all of
the headers 32-bit aligned when ETH_PADSIZE is 2.

I doubt it will help that much because I'm using the xps_ethernetlite IP core with a MicroBlaze embedded processor on a Spartan-3A DSP. Most people that are using this type of setup don't care about making it actually work well, they seem to be happy using the sub-standard software provided by Xilinx. The xps_ethernetlite core is a 100Mbps mac without DMA. Xilinx also offers a gigabit mac with DMA, which quite naturally consumes many more FPGA resources (and costs more). The problem I'm seeing is that the xps_ethernetlite core is unnecessarily limited by this alignment issue.

Tyrel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]