[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Help with LwIP Modem
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] Help with LwIP Modem |
Date: |
Fri, 8 Jul 2016 10:14:32 +0200 |
Sylvain Rochet wrote:
> You can't call tcpip_input() from an interrupt, this is a blocking
> message passing, it can block.
It's not: tcpip_input/tcpip_inpkt calls sys_mbox_trypost(), which does not have
to be blocking but should return != ERR_OK if the queue is full (drop input
packets). However, this is a port function, so the port may well not support
doing this from interrupt if it's written in a wrong way.
Aside from that, you should call "netif->input()" from your low level input.
This will be the function passed as input function to "netif_add()". The point
here is making your driver independent of threading requirements or application
usage. Calling tcpip_input or ethernet_input directly breaks the lwIP layering
concepts.
Simon
- [lwip-users] Help with LwIP Modem, Jaime Fernandez Hoffiz, 2016/07/04
- Re: [lwip-users] Help with LwIP Modem, Sergio R. Caprile, 2016/07/06
- Re: [lwip-users] Help with LwIP Modem, Jaime Fernández, 2016/07/06
- Re: [lwip-users] Help with LwIP Modem, Sylvain Rochet, 2016/07/07
- Re: [lwip-users] Help with LwIP Modem, Jaime Fernández, 2016/07/07
- Re: [lwip-users] Help with LwIP Modem, Sylvain Rochet, 2016/07/07
- Re: [lwip-users] Help with LwIP Modem, Sylvain Rochet, 2016/07/07
- Re: [lwip-users] Help with LwIP Modem, Jaime Fernández, 2016/07/07
- Re: [lwip-users] Help with LwIP Modem, Jaime Fernandez Hoffiz, 2016/07/07
- Re: [lwip-users] Help with LwIP Modem, Sylvain Rochet, 2016/07/08
- Re: [lwip-users] Help with LwIP Modem,
Simon Goldschmidt <=
- Re: [lwip-users] Help with LwIP Modem, Sylvain Rochet, 2016/07/08
- Re: [lwip-users] Help with LwIP Modem, Simon Goldschmidt, 2016/07/08
- Re: [lwip-users] Help with LwIP Modem, Sylvain Rochet, 2016/07/08
- Re: [lwip-users] Help with LwIP Modem, Simon Goldschmidt, 2016/07/08
- Re: [lwip-users] Help with LwIP Modem, Jeff Barlow, 2016/07/08
- Re: [lwip-users] Help with LwIP Modem, Jaime Fernandez Hoffiz, 2016/07/08
- Re: [lwip-users] Help with LwIP Modem, Jaime Fernandez Hoffiz, 2016/07/08
- Re: [lwip-users] Help with LwIP Modem, Jaime Fernandez Hoffiz, 2016/07/08
- Re: [lwip-users] Help with LwIP Modem, address@hidden, 2016/07/09
- Re: [lwip-users] Help with LwIP Modem, address@hidden, 2016/07/09