nuttx/net/pkt
Fotis Panagiotopoulos 3c54d82d81 net: Fix task block when devif_send fails.
When a task needs to send data, a callback is allocated and the
transmission is happening in a worker task through devif_send.
Synchronization between the two tasks (sender & worker) is
achieved by a semaphore.

If devif_send fails, this semaphore was never posted, leaving
the sending task blocked indefinitely. This commit fixes this
by checking the return code of netif_send, and posting this
semaphore in case of failure.

Polling then stops, and execution is resumed on the sending
task.
2023-06-01 17:05:54 +08:00
..
Kconfig Remove the tail spaces from all files except Documentation 2023-02-26 13:24:24 -08:00
Make.defs
pkt_callback.c net: cleanup pvconn reference to avoid confuse 2022-08-26 20:58:11 +08:00
pkt_conn.c net/pkt: Add readahead queue for pkt, call input for tx on sim 2023-03-08 23:09:25 +02:00
pkt_finddev.c net/pkt: Add readahead queue for pkt, call input for tx on sim 2023-03-08 23:09:25 +02:00
pkt_input.c net/pkt: Add readahead queue for pkt, call input for tx on sim 2023-03-08 23:09:25 +02:00
pkt_poll.c net/devif_poll: optimize device buffer alloc in txpoll 2023-01-13 16:41:10 +08:00
pkt_recvmsg.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
pkt_sendmsg.c net: Fix task block when devif_send fails. 2023-06-01 17:05:54 +08:00
pkt_sockif.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
pkt.h net/pkt: Add readahead queue for pkt, call input for tx on sim 2023-03-08 23:09:25 +02:00