Skip to content
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

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

xiaozhiche320
Copy link
Contributor

@xiaozhiche320 xiaozhiche320 commented Aug 19, 2024

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

  • I have read the contributing documentation.
  • I signed and signed-off the commits (git commit -S -s ...). See this documentation on signing commits.
  • I have correctly attributed the author(s) of the code.
  • I have tested the changes locally.
  • I have followed the project's style guidelines.
  • I have updated the documentation, if necessary.
  • I have added tests, if applicable.

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.

@xiaozhiche320 xiaozhiche320 requested a review from a team as a code owner August 19, 2024 16:40
@xiaozhiche320 xiaozhiche320 changed the title fix:Implement a dynamic temporary cache that tracks network interfaces that do not support the ethtool operation. fix: Implement a dynamic temporary cache that tracks network interfaces that do not support the ethtool operation. Aug 19, 2024
@rbtr
Copy link
Collaborator

rbtr commented Aug 19, 2024

@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.

Copy link
Member

@timraymond timraymond left a 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.

pkg/plugin/linuxutil/ethtool_stats_linux.go Outdated Show resolved Hide resolved
pkg/plugin/linuxutil/ethtool_stats_linux.go Outdated Show resolved Hide resolved
pkg/plugin/linuxutil/ethtool_stats_linux.go Outdated Show resolved Hide resolved
pkg/plugin/linuxutil/ethtool_stats_linux.go Outdated Show resolved Hide resolved
pkg/plugin/linuxutil/ethtool_stats_linux_test.go Outdated Show resolved Hide resolved
@nddq nddq linked an issue Aug 19, 2024 that may be closed by this pull request
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
@nddq nddq enabled auto-merge August 29, 2024 18:59
@nddq nddq added this pull request to the merge queue Aug 29, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 29, 2024
@nddq nddq added this pull request to the merge queue Aug 29, 2024
Merged via the queue into microsoft:main with commit a758979 Aug 29, 2024
22 checks passed
@@ -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) {
Copy link
Contributor

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.

@xiaozhiche320 xiaozhiche320 deleted the fix_ethtool branch September 25, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flannel.1 and cni0 interfaces don't support ethtool
7 participants