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:
parent
b859f2750b
commit
581b67ade3
10
net/Kconfig
10
net/Kconfig
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user