nuttx/net/udp
Zhe Weng 075eb6a6d2 net/udp: Change conn->readahead to I/O buffer chain
When using IOB queue to store readahead data, we use one IOB for each
UDP packet. Then if the packets are very small, like 10Bytes per packet,
we'll use ~1600 IOBs just for 16KB recv buffer size, which is wasteful
and dangerous. So change conn->readahead to a single IOB chain like TCP.

Benefits:
- Using memory and IOBs more efficiently (small packets are common in
  UDP)

Side effects:
- UDP recv buffer size may count the overhead
- A little bit drop in performance (<1%, more seek & copy)

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-07-18 10:51:45 +08:00
..
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
Kconfig Kconfig: Simplify the conditional default statement 2023-07-16 14:39:20 -03:00
Make.defs
udp_callback.c net/udp: Change conn->readahead to I/O buffer chain 2023-07-18 10:51:45 +08:00
udp_close.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
udp_conn.c net/udp: Change conn->readahead to I/O buffer chain 2023-07-18 10:51:45 +08:00
udp_devpoll.c net/devif_poll: optimize device buffer alloc in txpoll 2023-01-13 16:41:10 +08:00
udp_finddev.c net: modify find device logic 2023-02-12 01:25:34 +08:00
udp_input.c net: move device buffer define to common header 2022-10-28 00:32:16 -04:00
udp_ioctl.c net/udp: Change conn->readahead to I/O buffer chain 2023-07-18 10:51:45 +08:00
udp_ipselect.c net: move device buffer define to common header 2022-10-28 00:32:16 -04:00
udp_netpoll.c net/udp: Change conn->readahead to I/O buffer chain 2023-07-18 10:51:45 +08:00
udp_notifier.c net/udp: Change conn->readahead to I/O buffer chain 2023-07-18 10:51:45 +08:00
udp_recvfrom.c net/udp: Change conn->readahead to I/O buffer chain 2023-07-18 10:51:45 +08:00
udp_send.c net: move ttl field into socket_conn_s struct 2023-05-13 12:39:53 +08:00
udp_sendto_buffered.c net: consistent the net sem wait naming conversion 2023-01-15 12:31:30 -03:00
udp_sendto_unbuffered.c net: Fix task block when devif_send fails. 2023-06-01 17:05:54 +08:00
udp_setsockopt.c
udp_txdrain.c net: remove conn-related casts 2023-05-10 19:32:09 -03:00
udp_wrbuffer_dump.c
udp_wrbuffer.c net: consistent the net sem wait naming conversion 2023-01-15 12:31:30 -03:00
udp.h net/udp: Change conn->readahead to I/O buffer chain 2023-07-18 10:51:45 +08:00