[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [task #7490] Add return value to sys_mbox_post
From: |
Simon Goldschmidt |
Subject: |
[lwip-devel] [task #7490] Add return value to sys_mbox_post |
Date: |
Mon, 26 Nov 2007 17:09:08 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9 |
Follow-up Comment #6, task #7490 (project lwip):
> I actually have a problem with this: I get the network packets
> from an interrupt handler, which is not allowed to wait, and I've
> currently no way to let the interrupt handler know that it
> shouldn't call tcpip_input but just drop the packet.
If not solving this with giving sys_mbox_post a return value, we could always
implement a counter that sets a limit on the packet-input mbox. That way,
sys_mbox_post can assert if the mbox is full.
I don't think waiting until there is free space in the mbox is the correct
implmementation: What if a UDP/TCP recv mbox is full but the application has
different things to do than receiving data? This would block the whole
tcpip_thread. So asserting should be the correct thing to do, but that can be
left out in a release build! :-(
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/task/?7490>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Simon Goldschmidt, 2007/11/25
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Frédéric Bernon, 2007/11/25
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Simon Goldschmidt, 2007/11/25
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Frédéric Bernon, 2007/11/25
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Simon Goldschmidt, 2007/11/25
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Samuel Thibault, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Frédéric Bernon, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post,
Simon Goldschmidt <=
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Jared Grubb, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Samuel Thibault, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Simon Goldschmidt, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Frédéric Bernon, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Jonathan Larmour, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Frédéric Bernon, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Simon Goldschmidt, 2007/11/27
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Kieran Mansley, 2007/11/27