nuttx-mirror/net/usrsock
Zhe Weng 1fe07d0838 net: Add buffer pool to replace connection allocation
Our net socket connection allocations are powerful but redundant
because they're implemented once in each protocol.  This is not good for
further optimizing and extending to other allocations, so maybe we can
add a common implementation for the usage.

Impact:
1. We add a `struct net_bufpool_s` as pool descriptor, which may use a
   little bit more memory than previous implementation (~28Bytes).
2. We share same functions between pools, so code size may shrink under
   some scenarios.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2024-12-23 16:57:19 -03:00
..
CMakeLists.txt net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
Kconfig net/usrsock: Can enable TCP/UDP IP stack with Usrsock enabled 2023-09-21 01:08:11 +08:00
Make.defs net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
usrsock.h net/usrsock: Clear usockid when USRSOCK_EVENT_ABORT is received 2024-09-24 23:09:20 +08:00
usrsock_accept.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
usrsock_bind.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
usrsock_close.c net/usrsock: Clear usockid when USRSOCK_EVENT_ABORT is received 2024-09-24 23:09:20 +08:00
usrsock_conn.c net: Add buffer pool to replace connection allocation 2024-12-23 16:57:19 -03:00
usrsock_connect.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
usrsock_devif.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
usrsock_event.c modify for set conn status with connected when receive event USRSOCK_EVENT_SENDTO_READY 2024-10-16 07:55:10 +08:00
usrsock_getpeername.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
usrsock_getsockname.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
usrsock_getsockopt.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
usrsock_ioctl.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
usrsock_listen.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
usrsock_poll.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
usrsock_recvmsg.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
usrsock_sendmsg.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
usrsock_setsockopt.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
usrsock_shutdown.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
usrsock_socket.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
usrsock_sockif.c net/usrsock: usrsock supports offload netlink 2024-10-28 19:42:05 +08:00