net: add config to support allocate connect dynamically

add config CONFIG_NET_ALLOC_CONNS to support allocate connect.
Use this feature if the number of connections can not be determined at
compile time. When enabled the stack will be compiled without the static
pre-allocate connection list and all connection instances will be dynamically
allocated from heap at run time.

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2021-12-31 15:19:31 +08:00 committed by Xiang Xiao
parent b859f2750b
commit 581b67ade3

View File

@ -312,6 +312,16 @@ source "net/ipforward/Kconfig"
endmenu # Internet Protocol Selection endmenu # Internet Protocol Selection
config NET_ALLOC_CONNS
bool "Allocate connect instance dynamically"
default n
---help---
Enable to allocate connection instances dynamically.
Use this feature if the number of connections can not be determined at
compile time. When enabled the stack will be compiled without the static
pre-allocate connection list and all connection instances will be dynamically
allocated from heap at run time.
source "net/socket/Kconfig" source "net/socket/Kconfig"
source "net/inet/Kconfig" source "net/inet/Kconfig"
source "net/pkt/Kconfig" source "net/pkt/Kconfig"