-
Notifications
You must be signed in to change notification settings - Fork 200
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
fix: Implement a dynamic temporary cache that tracks network interfaces that do not support the ethtool operation. #620
Conversation
@xiaozhiche320 please review the contributing guidelines, in particular signing and signing-off, and also update or remove the boilerplate in the description so that it is accurate. |
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.
I have a couple thoughts here, see below. Also, what is the motivation for these changes? Is there some performance concern that this improves? Couldn't find a linked issue or explanation in the PR description.
f1c59ee
to
5f43e70
Compare
2.Implement a dynamic temporary cache that tracks network interfaces that do not support the ethtool operation. 3.Add new test cases for the new changings
5f43e70
to
48e6a60
Compare
@@ -318,10 +318,10 @@ func (p *packetParser) clean(tcnl ITc, tcIngressObj *tc.Object, tcEgressObj *tc. | |||
// Warning, not error. Clean is best effort. | |||
if tcnl != nil { | |||
if err := getQdisc(tcnl).Delete(tcEgressObj); err != nil && !errors.Is(err, tc.ErrNoArg) { |
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.
We should check if the error is because theveth
was deleted. If that's the case, it's not an error.
Description
1.Implement a dynamic temporary cache that tracks network interfaces that do not support the ethtool operation.
2.Add new test cases for the new changings
Related Issue
If this pull request is related to any issue, please mention it here. Additionally, make sure that the issue is assigned to you before submitting this pull request.
Checklist
git commit -S -s ...
). See this documentation on signing commits.Screenshots (if applicable) or Testing Completed
Please add any relevant screenshots or GIFs to showcase the changes made.
Additional Notes
Add any additional notes or context about the pull request here.
Please refer to the CONTRIBUTING.md file for more information on how to contribute to this project.