Skip to content

net: ip: Fix the warning in the data path #93282

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

krish2718
Copy link
Contributor

@krish2718 krish2718 commented Jul 17, 2025

Instead of warning for every-packet, warn only once and let user debug the underlying cause.

Fix #49845.

Depends on #93536

jukkar
jukkar previously approved these changes Jul 17, 2025
Copy link
Contributor

@JordanYates JordanYates left a comment

Choose a reason for hiding this comment

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

Put more succinctly, shouldn't the problem at the driver layer that causes the failures and the application layer that continuously keeps trying to send be fixed, rather than making the log output less useful?

@krish2718
Copy link
Contributor Author

Put more succinctly, shouldn't the problem at the driver layer that causes the failures and the application layer that continuously keeps trying to send be fixed, rather than making the log output less useful?

Absolutely, the entire pipeline as you say is responsible as you say (and IIRC we had the same discussion about lacking stop/start data path in Zephyr), but the specific problem this PR addresses is that, bombarding with prints (Zperf pumping at 50M) doesn't help, esp. you loose any control over the shell, cannot even type in wifi statistics or net stats to debug.

@JordanYates
Copy link
Contributor

Absolutely, the entire pipeline as you say is responsible as you say (and IIRC we had the same discussion about lacking stop/start data path in Zephyr), but the specific problem this PR addresses is that, bombarding with prints (Zperf pumping at 50M) doesn't help, esp. you loose any control over the shell, cannot even type in wifi statistics or net stats to debug.

Can we do something like only printing a warning if at least 1 second has passed since the last warning?

@krish2718
Copy link
Contributor Author

Absolutely, the entire pipeline as you say is responsible as you say (and IIRC we had the same discussion about lacking stop/start data path in Zephyr), but the specific problem this PR addresses is that, bombarding with prints (Zperf pumping at 50M) doesn't help, esp. you loose any control over the shell, cannot even type in wifi statistics or net stats to debug.

Can we do something like only printing a warning if at least 1 second has passed since the last warning?

Yeah, the rate limiting discussion is in the above comment.

@zephyrbot zephyrbot added Release Notes To be mentioned in the release notes area: Logging labels Jul 22, 2025
@krish2718
Copy link
Contributor Author

image This is defintiely much better than existing behaviour.

@pdgendt
Copy link
Contributor

pdgendt commented Jul 22, 2025

The rate limited printing looks very interesting, but should get its own PR IMO.

@krish2718
Copy link
Contributor Author

The rate limited printing looks very interesting, but should get its own PR IMO.

I thought the same, but this has the context behind need for ratelimited, I can split this PR into two.

As this is the hot data path, use a rate limited warning variant.

Signed-off-by: Chaitanya Tata <[email protected]>
@krish2718 krish2718 marked this pull request as draft July 22, 2025 19:50
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Logging area: Networking Release Notes To be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

net: Disable data path prints
6 participants