[ECOS] Re: Few questions on lwip stack

Sergei Gavrikov sergei.gavrikov@gmail.com
Wed Nov 24 16:58:00 GMT 2010


On Wed, 24 Nov 2010, Alexander Aganichev wrote:

> On Wed, Nov 24, 2010 at 3:40 PM, Sergei Gavrikov
> <sergei.gavrikov@gmail.com> wrote:
>> On Tue, 23 Nov 2010, Alexander Aganichev wrote:
>>> I rewrote lwip to use POSIX threads if they enabled (just wondering if
>>> anyone wants it to be published?), increased stack sizes (looks like
>>> default too low if you enable debug output for PHY), increased number
>>> of timers (though I do not use my own, the default number is not
>>> enough for two threads that use LWIP), increased some other buffers.
>>
>> Hi,
>>
>> What does mean 'rewrote lwip'? Does it mean that you have a patch for
>> current lwip package to use POSIX threads or you worked on CDL config
>> options only? What were your steps? As we have not some kind of 'eCos
>> Magazine' it would be fine to share your experience on the list (IMO).
>
> Oops, wrong term. Yes, I patched lwip's layer to use POSIX threads
> instead of native threads if eCos configured to use POSIX threads (so,
> no explicit CDL option). I'm just not sure if anyone wants it. I can
> post it to bugzilla if you want. All other things was done based on
> options only. It looks like some options should be better documented
> so other people will not spend time trying to figure out why it does
> not work for them.

It would be great if you find time to post your workaround (patch and
ecm) in eCos Bugzilla database. Why not? 

> I have few other improvements over eCos which need some CDL code (for
> example, LCP2468 require copying transmission buffers to internal
> memory if we work with external RAM due to too low speed of transfer)
> or review from someone more familiar with eCos internals.

Any enhancements are welcome. You're not trying to change the interrupt
priority for LPC Ethernet driver? AFAIK, default value is non-priority
value.

Yes, by the way, if you have crossed lwIP with POSIX, can you build lwIP
net tests (with POSIX threads?) and run it against eCos Net throughput
tests (tcp_source, tcp_sink, etc.)? As I remember you started with BSD
net stack and POSIX threads. Just wondering: Have you got a performance
boost? Or how much faster lwIP stack by your  subjective experience?

Thank you,
Sergei

> Best regards,
> Alexander
>
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list