Skip to content

Conversation

@Cristib05
Copy link
Contributor

@Cristib05 Cristib05 commented Nov 17, 2025

Provide support to define number of socket services using Kconfig.

Comment on lines 418 to 419
This configuration defines the maximum number of pollable mDNS sockets
to be used within platform mDNS module.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this help text correct, it looks identical as the mDNS one?

@Cristib05 Cristib05 force-pushed the config_platform_socket_services branch from 6cb3b12 to 8b34b8e Compare November 17, 2025 13:14
@Cristib05 Cristib05 changed the title Config platform socket services using Kconfig Define number of platform socket services using Kconfig Nov 17, 2025
config OPENTHREAD_ZEPHYR_BORDER_ROUTER_MAX_UDP_SERVICES
int "The maximum number of pollable UDP sockets to be registered in platform UDP."
int "The maximum number of pollable UDP sockets to be registered in platform code."
depends on OPENTHREAD_ZEPHYR_BORDER_ROUTER
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This config is already behind if OPENTHREAD_ZEPHYR_BORDER_ROUTER so depends on OPENTHREAD_ZEPHYR_BORDER_ROUTER is redundant, could be removed. Same for other configs below.

@Cristib05 Cristib05 force-pushed the config_platform_socket_services branch from 8b34b8e to d75387a Compare November 17, 2025 15:06
@Cristib05 Cristib05 requested review from jukkar and rlubos November 17, 2025 15:07
This commit adds support to define number of platform socket services
using Kconfig.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
Updated platform code to make use of number of socket services defined
in Kconfig. In this way, hardcoded values are avoided.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
@Cristib05 Cristib05 force-pushed the config_platform_socket_services branch from d75387a to 9a4b035 Compare November 17, 2025 16:01
@sonarqubecloud
Copy link

@nashif nashif merged commit 34d215d into zephyrproject-rtos:main Nov 19, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants