-
Notifications
You must be signed in to change notification settings - Fork 3.4k
ethtool: use ioctl wrapper from golang.org/x/sys/unix #17153
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
71e6fe9
to
785b340
Compare
test-me-please |
785b340
to
e402210
Compare
Rebased to pick up fixes for EKS CI 3.0 tests. |
test-me-please Job 'Cilium-PR-K8s-1.16-net-next' failed and has not been observed before, so may be related to your PR: Click to show.Test Name
Failure Output
If it is a flake, comment |
test-gke previous run timed out waiting for images to be built: https://jenkins.cilium.io/job/Cilium-PR-K8s-GKE/6212/ |
/mlh new-flake Cilium-PR-K8s-1.16-net-next 👍 created #17176 |
test-1.16-netnext |
e402210
to
8e6e773
Compare
Rebased and also dropped unrelated file renames which I accidentally committed. |
test-me-please Job 'Cilium-PR-K8s-GKE' failed and has not been observed before, so may be related to your PR: Click to show.Test Name
Failure Output
If it is a flake, comment |
8e6e773
to
3c6255d
Compare
test-me-please Rebased to resolve merge conflicts |
3c6255d
to
4e40ea7
Compare
Is the incorrect padding causing an issue now? Meaning should this be marked as a bugfix? |
Good point. I'm currently not aware of any issues this is causing, but I guess it could potentially cause issues. These will likely be hard to track down. I'll thus mark it as bugfix and for backports. |
This pulls in a few fixes around ioctl wrappers wrt. unsafe.Pointer usage and fixes ifreqEthtool to be correctly padded. Ref. golang/sys@e5e7981 Ref. golang/sys@b450225 Signed-off-by: Tobias Klauser <tobias@cilium.io>
Use the ioctl wrapper provided in the golang.org/x/sys/unix package with the correctly padded ifreqData struct, rather than providing our own wrapper and struct which is incorrectly padded. Also add a simple unit test and make sure the package is only built on Linux. Signed-off-by: Tobias Klauser <tobias@cilium.io>
4e40ea7
to
6e3336e
Compare
test-me-please Rebased to pick up CI fixes |
Commit 8e9a627 does not contain "Signed-off-by". Please follow instructions provided in https://docs.cilium.io/en/stable/contributing/development/contributing_guide/#developer-s-certificate-of-origin |
Update the vendored copy of
golang.org/x/sys/unix
to pull inioctl wrapper fixes and switchpkg/datapath/ethtool
to use one of these wrappers with the correctly paddedifreqData struct
.See individual commits for details.