Skip to content

Conversation

@Damian-Nordic
Copy link
Contributor

@Damian-Nordic Damian-Nordic commented May 15, 2025

Fix regression introduced by #88747 that breaks linking with zperf server enabled but TCP or UDP disabled.

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.

Could you also add a commit to this PR that adds similar change to UDP?

Fix regression introduced by zephyrproject-rtos#88747 that breaks linking
with zperf server enabled but TCP or UDP disabled.

Signed-off-by: Damian Krolik <damian.krolik@nordicsemi.no>
@Damian-Nordic
Copy link
Contributor Author

Could you also add a commit to this PR that adds similar change to UDP?

sure, done

@Damian-Nordic Damian-Nordic changed the title net: lib: zperf: fix compilation without TCP net: lib: zperf: fix compilation with UDP/TCP only May 15, 2025
@sonarqubecloud
Copy link

@JordanYates
Copy link
Contributor

Would this still resolve the issue if CONFIG_NO_OPTIMIZATIONS=y?

@Damian-Nordic
Copy link
Contributor Author

Damian-Nordic commented May 15, 2025

Would this still resolve the issue if CONFIG_NO_OPTIMIZATIONS=y?

I'm not sure but I can see it's pretty common in Zephyr to use IS_ENABLED and assume the compiler will optimize the call out so I followed existing convention.

@kartben kartben merged commit 82b802f into zephyrproject-rtos:main May 19, 2025
33 checks passed
@Damian-Nordic Damian-Nordic deleted the zperf_tcp branch May 19, 2025 09:25
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.

5 participants