Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ensuring logical correctness via modulo operations #296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

@liujinhui-job
Copy link

@liujinhui-job liujinhui-job commented Jun 30, 2025

The tx_dmaq_insert_seq variable continuously performs increment (++) operations.
When it reaches the maximum value of 0xFFFFFFFF and continues incrementing, it wraps around to 0.

At this point, the value of tx_dmaq_insert_seq_last_poll remains very large, causing the ci_netif_poll function to be unable to be called for an extended period.

Modify it to use a modulo operation to ensure logical correctness.

Ensuring logical correctness via modulo operations
@liujinhui-job liujinhui-job requested a review from a team as a code owner June 30, 2025 16:03
@liujinhui-job liujinhui-job deleted the avoid_dmaq_insert_seq_wraparound branch July 3, 2025 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /