Skip to content

feat(net): prepare the polling task for network interfaces#636

Merged
Koichi98 merged 1 commit intomainfrom
poll_network_if_task
Aug 21, 2025
Merged

feat(net): prepare the polling task for network interfaces#636
Koichi98 merged 1 commit intomainfrom
poll_network_if_task

Conversation

@ytakano
Copy link
Collaborator

@ytakano ytakano commented Aug 20, 2025

Description

Previously, network interfaces were polled only by the primary core. However, polling may not occur if the primary core enters a sleep state.
This PR introduces a dedicated polling task to ensure that network interfaces are consistently polled, even when the primary core is sleeping.

Current primary core:

loop {
   poll_network_interfaces();
   sleep(); // wait interrupts forever, may not poll network interfaces.
}

Related links

How was this PR tested?

Notes for reviewers

Signed-off-by: Yuuki Takano <ytakanoster@gmail.com>
@ytakano ytakano marked this pull request as ready for review August 20, 2025 07:26
@ytakano ytakano requested a review from Koichi98 August 20, 2025 07:26
@Koichi98 Koichi98 merged commit a1be470 into main Aug 21, 2025
2 checks passed
@Koichi98 Koichi98 deleted the poll_network_if_task branch August 21, 2025 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants