Skip to content

Conversation

@Lukas-Luger
Copy link
Contributor

Contribution description

The gnrc_tx_sync() function currently blocks infinitely after a packet with tx_sync is sent via gnrc_netapi_send() through a legacy netdev when the gnrc_netif_pktq module is being used. This happens, because the tc_sync snippet users get increased and the sync snippet can not be released properly.

Testing procedure

The test provided only uses nrfmin as legacy netdev. Therefore the test should only work on nrf5x devices. By adjusting the Makefile any other legacy netdev can be used.

The test starts a separate result_thread and uses ztimer_sec to schedule a timeout error message after one second. As soon as gnrc_tx_sync() releases, the timeout error message gets canceled and a success message is being sent to the result_thread.

Issues/PRs references

PR #15694; PR #21709

@Lukas-Luger Lukas-Luger requested a review from miri64 as a code owner November 6, 2025 13:39
@github-actions github-actions bot added Area: network Area: Networking Area: tests Area: tests and testing framework Area: sys Area: System labels Nov 6, 2025
@crasbe crasbe added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Nov 6, 2025
@benpicco benpicco requested a review from maribu November 6, 2025 16:11
@riot-ci
Copy link

riot-ci commented Nov 6, 2025

Murdock results

✔️ PASSED

a071c78 fixup! tests/net: add tx_sync test for legacy netdevs

Success Failures Total Runtime
10910 0 10914 09m:20s

Artifacts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: network Area: Networking Area: sys Area: System Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants