Skip to content

Conversation

@aescolar
Copy link
Member

@aescolar aescolar commented Dec 9, 2025

In d45cd67 the mayority of the Zephyr networking code was changed to use the Zephyr native net_/zsock_ prefixed types, but some symbols were missed.
Let's change them.

Without these fixes/changes the code still builds in most cases as we are by now setting CONFIG_NET_NAMESPACE_COMPAT_MODE.
But when this is not set, things will fail to build.

And change the respective sample app to use native networking API directly in the one call it wasn't.

@aescolar aescolar requested review from jukkar and rlubos December 9, 2025 16:27
@aescolar aescolar marked this pull request as ready for review December 10, 2025 07:39
rlubos
rlubos previously approved these changes Dec 10, 2025
pdgendt
pdgendt previously approved these changes Dec 10, 2025
Copy link
Member

@jukkar jukkar left a comment

Choose a reason for hiding this comment

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

LGTM. One reason why the library code was not noticed to contain POSIX symbols is that tests/net/all/prj.conf is missing enabling LATMON i.e., CONFIG_NET_LATMON=y
While at it, could you add a commit to this PR enabling that?

@aescolar aescolar dismissed stale reviews from pdgendt and rlubos via 1e811e7 December 11, 2025 12:34
@aescolar
Copy link
Member Author

tests/net/all/prj.conf is missing enabling LATMON i.e., CONFIG_NET_LATMON=y
While at it, could you add a commit to this PR enabling that?

Done :)

@zephyrbot zephyrbot added the area: Tests Issues related to a particular existing or missing test label Dec 11, 2025
pdgendt
pdgendt previously approved these changes Dec 11, 2025
kartben
kartben previously approved these changes Dec 11, 2025
In d45cd67 the mayority of the Zephyr
networking code was changed to use the Zephyr native net_/zsock_
prefixed types, but some symbols were forgotten.
Let's change them.

Without these fixes/changes the code still builds in most cases as we are
by now setting CONFIG_NET_NAMESPACE_COMPAT_MODE.
But when this is not set, things will fail to build.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
This subsystem does not use the POSIX_API, and the sample only used one
call to the POSIX API to close a socket instead of using the native
networking API.
Let's just use the native networking API, so we avoid pulling-in more
dependencies.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
Also build the latency monitor support code.

As a sideeffect, we run out of bits in the kernel objects per thread
permissions tracking field. So let's increase it to 6 bytes.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
bcec3bd introduced some of the
non-native API names back into this module. Let's fix it.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
@aescolar
Copy link
Member Author

aescolar commented Dec 11, 2025

The last push was just a rebase + an extra commit with a fix for the issue which was just introduced in main in the openthread integration which also triggered in this PR.

@sonarqubecloud
Copy link

@aescolar aescolar added the Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. label Dec 11, 2025
@aescolar
Copy link
Member Author

aescolar commented Dec 11, 2025

I labelled the PR trivial so we can skip the few last minutes of the 48h if we want to. Any release engineer can merge it now.
The changes since the last batch of approvals was just the hotfix for the openthread module integration issue in main which also triggered in this PR. This last fix is conceptually trivial.
Before the PR had been approved by both networking maintainers.

@aescolar aescolar merged commit dd7526a into zephyrproject-rtos:main Dec 11, 2025
32 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Networking area: OpenThread area: Samples Samples area: Tests Issues related to a particular existing or missing test Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants