xmos / lib_ethernet

Ethernet MAC library
Other
3 stars 15 forks source link

Standard MII buffering does not cope well with large packets #61

Open shuchitak opened 6 days ago

shuchitak commented 6 days ago

http://bugzilla.xmos.local/show_bug.cgi?id=16282

Peter Hedinger 2015-01-06 09:44:09 GMT The standard MII buffering is structured with two banks in order to have one that is being written to while the pointers in the other bank are being updated.

However, this has the effect of making the memory usage very inefficient for large packets. Consider the following case:

As a result, in this case only 1/4 of the buffer is actually used.

A more effective scheme might be to have 4 independent maximum sized frame buffers since they are being copied to the client anyway.

shuchitak commented 6 days ago

Possibly, also reported as part of https://github.com/xmos/lib_ethernet/issues/28