lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] core/timers.c with NO_SYS?


From: Bill Auerbach
Subject: Re: [lwip-devel] core/timers.c with NO_SYS?
Date: Mon, 13 Jun 2011 14:25:13 -0400

>In my products, that would mean that interrupts need to be locked every
>time the tcpip_thread calls into the stack. This would totally break our
>design. In my opinion, this would make lwIP useless in a threaded
>environment with other code having a higher priority than the TCP/IP
>stack.

To add to this, 2 of my lwIP-based products need 15kHz and 28kHz real-time
(encoder) interrupts.  Interrupt latency cannot be added to lwIP by default
in any configuration where it cannot be turned off.  It would break our
product(s) as well.  I do use RX interrupts for receiving packets in lwIP
without latency issues.  I know this because ISR times and latency are
quantified by our hardware engineer responsible for handling these
interrupts.

>I think the current design of the three memory-related files and their 
>usage of locks is fine as it is now.

I wouldn't change it.  IMO if lwIP were going to work in a fully preemptive
RTOS environment with shared PCB and sockets, it needs to be designed to do
so, not shoehorned in.

Bill




reply via email to

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