nuttx/net/tcp
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 net: Rename tcp_dataconcat to net_iob_concat 2023-07-18 10:51:45 +08:00
Make.defs
tcp_accept.c
tcp_appsend.c
tcp_backlog.c
tcp_callback.c net: Rename tcp_dataconcat to net_iob_concat 2023-07-18 10:51:45 +08:00
tcp_cc.c
tcp_close.c
tcp_conn.c
tcp_connect.c
tcp_devpoll.c
tcp_dump.c
tcp_finddev.c
tcp_getsockopt.c
tcp_input.c net: Rename tcp_dataconcat to net_iob_concat 2023-07-18 10:51:45 +08:00
tcp_ioctl.c
tcp_ipselect.c
tcp_listen.c
tcp_monitor.c
tcp_netpoll.c
tcp_notifier.c
tcp_recvfrom.c net: Add msg_peek support for udp and tcp 2023-07-13 19:40:04 +08:00
tcp_recvwindow.c
tcp_send_buffered.c net: Fix task block when devif_send fails. 2023-06-01 17:05:54 +08:00
tcp_send_unbuffered.c net: Fix task block when devif_send fails. 2023-06-01 17:05:54 +08:00
tcp_send.c
tcp_sendfile.c
tcp_seqno.c
tcp_setsockopt.c
tcp_shutdown.c
tcp_timer.c
tcp_txdrain.c
tcp_wrbuffer.c
tcp.h net/udp: Change conn->readahead to I/O buffer chain 2023-07-18 10:51:45 +08:00