From 8363b8cfd9e4b7736c897402439a74d6baa6e6de Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Wed, 29 May 2024 11:02:53 +0300 Subject: [PATCH] samples: net: Increase CONFIG_NET_SOCKETS_POLL_MAX to pass checks The number of suitable network IPv6/4 configurations in interfaces affect the number of pollable sockets. So need to increase the value from the default value of 3. Signed-off-by: Jukka Rissanen --- samples/net/dns_resolve/prj.conf | 2 ++ samples/net/mdns_responder/prj.conf | 2 ++ tests/net/lib/dns_sd/prj.conf | 1 + 3 files changed, 5 insertions(+) diff --git a/samples/net/dns_resolve/prj.conf b/samples/net/dns_resolve/prj.conf index 95d6d0ed0bc..b2de8a0dd4f 100644 --- a/samples/net/dns_resolve/prj.conf +++ b/samples/net/dns_resolve/prj.conf @@ -14,6 +14,8 @@ CONFIG_NET_IPV6=y CONFIG_NET_IPV4=y CONFIG_NET_DHCPV4=n +CONFIG_NET_SOCKETS_POLL_MAX=4 + # Enable the DNS resolver CONFIG_DNS_RESOLVER=y # Enable additional buffers diff --git a/samples/net/mdns_responder/prj.conf b/samples/net/mdns_responder/prj.conf index 644067671b4..60f6fa3326d 100644 --- a/samples/net/mdns_responder/prj.conf +++ b/samples/net/mdns_responder/prj.conf @@ -8,6 +8,8 @@ CONFIG_NET_IPV4=y CONFIG_NET_IF_MAX_IPV6_COUNT=3 CONFIG_NET_IF_MAX_IPV4_COUNT=3 +CONFIG_NET_SOCKETS_POLL_MAX=6 + CONFIG_NET_HOSTNAME_ENABLE=y CONFIG_NET_HOSTNAME_UNIQUE=n CONFIG_NET_HOSTNAME="zephyr" diff --git a/tests/net/lib/dns_sd/prj.conf b/tests/net/lib/dns_sd/prj.conf index 6655eb94323..e9f24acf88a 100644 --- a/tests/net/lib/dns_sd/prj.conf +++ b/tests/net/lib/dns_sd/prj.conf @@ -21,3 +21,4 @@ CONFIG_ZTEST_STACK_SIZE=2048 CONFIG_MAIN_STACK_SIZE=2048 CONFIG_NET_MAX_CONTEXTS=8 +CONFIG_NET_SOCKETS_POLL_MAX=4