Fabian Cenedese wrote: > >No. It's in the nature of BSD-alike socket APIs that they run > "sequential". lwIP needs a dedicated thread to handle incoming packets and > timers. > > I thought this would also be done from the polling thread.
>From which polling thread? I don't think I understand that... > How should it be done now? Should my interrupt handler call > myethif_input (which calls low_level_input) and give the received > data to netif->input (which is tcpip_input)? Yes. Your ethernet RX interrupt can allocate PBUF_POOL pbufs in the ISR and call netif->input() (as long as that is tcpip_input). Everything is thread-safe in this way (as long as you have set up SYS_LIGHTWEITH_PROT correctly). Simon _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
