-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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?
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 |
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. |
db6d1d1
to
332a065
Compare
332a065
to
ca901db
Compare
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]>
ca901db
to
5e3d76c
Compare
|
Instead of warning for every-packet, warn only once and let user debug the underlying cause.
Fix #49845.
Depends on #93536