Skip to content

Commit 44bcdcc

Browse files
committed
net: context: Make sure to allocate enough sockets
The number of net_context now determines the minimum amount of network sockets that are to be allocated. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent 680df8f commit 44bcdcc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

subsys/net/ip/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,10 @@ config NET_MAX_CONTEXTS
509509
is used when listening or sending network traffic. This is very
510510
similar as one could call a network socket in some other systems.
511511

512+
config ZVFS_OPEN_ADD_SIZE_NET
513+
int "Number of network sockets to allocate"
514+
default NET_MAX_CONTEXTS
515+
512516
config NET_CONTEXT_NET_PKT_POOL
513517
bool "Net_buf TX pool / context"
514518
default y if NET_TCP && NET_6LO

0 commit comments

Comments
 (0)