net/bufpool: Call init automatically on alloc

Note: Initialize function of protocols (tcp, udp, pkt, etc.) are kept empty.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
This commit is contained in:
Zhe Weng
2025-01-02 12:10:09 +08:00
committed by Xiang Xiao
parent f702f1705f
commit 50b3ab7671
27 changed files with 23 additions and 272 deletions
-2
View File
@@ -300,8 +300,6 @@ void usrsock_setup_datain(FAR struct usrsock_conn_s *conn,
void usrsock_initialize(void)
{
NET_BUFPOOL_INIT(g_usrsock_connections);
/* Register /dev/usrsock character device. */
usrsock_register();