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

Remove sockops-enable and friends #23606

Merged
merged 1 commit into from Apr 4, 2023
Merged

Conversation

mohit-marathe
Copy link
Contributor

Signed-off-by: Mohit Marathe mohitmarathe23@gmail.com

Please ensure your pull request adheres to the following guidelines:

  • For first time contributors, read Submitting a pull request
  • All code is covered by unit and/or runtime tests where feasible.
  • All commits contain a well written commit description including a title,
    description and a Fixes: #XXX line if the commit addresses a particular
    GitHub issue.
  • If your commit description contains a Fixes: <commit-id> tag, then
    please add the commit author[s] as reviewer[s] to this issue.
  • All commits are signed off. See the section Developer’s Certificate of Origin
  • Provide a title or release-note blurb suitable for the release notes.
  • Thanks for contributing!

Fixes: #23556

Deleted the files mentioned in the issue. Additionally I deleted all occurrences of sockops

@mohit-marathe mohit-marathe requested review from a team as code owners February 7, 2023 11:25
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Feb 7, 2023
@github-actions github-actions bot added the kind/community-contribution This was a contribution made by a community member. label Feb 7, 2023
bpf/Makefile Show resolved Hide resolved
@tklauser
Copy link
Member

tklauser commented Feb 7, 2023

The build failure looks related to this PR: https://app.travis-ci.com/github/cilium/cilium/builds/260413218

I think you need the sock_key forward declaration from bpf_alignchecker.c as well:

struct sock_key _16;

@tklauser tklauser added the release-note/minor This PR changes functionality that users may find relevant to operating Cilium. label Feb 7, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Feb 7, 2023
@tklauser tklauser added area/sockops dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Feb 7, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Feb 7, 2023
@tklauser tklauser added sig/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Feb 7, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Feb 7, 2023
@mohit-marathe
Copy link
Contributor Author

@tklauser, sorry I don't understand, should I remove struct sock_key _16 from bpf_alignchecker.c?

Copy link
Contributor

@aspsk aspsk left a comment

Choose a reason for hiding this comment

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

A few cleanups and one question

Makefile Outdated Show resolved Hide resolved
bpf/lib/maps.h Show resolved Hide resolved
Documentation/network/ebpf/intro.rst Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@mohit-marathe
Copy link
Contributor Author

I accidentally synced my branch with master, so I'm going to reset some commits.

@mohit-marathe mohit-marathe force-pushed the sockops-deletion branch 2 times, most recently from 713a4d2 to 4c423f3 Compare April 3, 2023 15:59
@qmonnet
Copy link
Member

qmonnet commented Apr 3, 2023

/test

Job 'Cilium-PR-K8s-1.25-kernel-4.19' failed:

Click to show.

Test Name

K8sDatapathConfig Host firewall With VXLAN and endpoint routes

Failure Output

FAIL: Error deleting resource /home/jenkins/workspace/Cilium-PR-K8s-1.25-kernel-4.19/src/github.com/cilium/cilium/test/k8s/manifests/host-policies.yaml: Cannot retrieve "cilium-jckm2"'s policy revision: cannot get policy revision: ""

If it is a flake and a GitHub issue doesn't already exist to track it, comment /mlh new-flake Cilium-PR-K8s-1.25-kernel-4.19 so I can create one.

@qmonnet
Copy link
Member

qmonnet commented Apr 4, 2023

So sorry, we've got conflicts to address again 😞

@mohit-marathe
Copy link
Contributor Author

@qmonnet ✌️Not a problem!

@qmonnet
Copy link
Member

qmonnet commented Apr 4, 2023

/test

Copy link
Member

@tklauser tklauser left a comment

Choose a reason for hiding this comment

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

It looks like something went wrong in pkg/defaults/defaults.go on rebase.

pkg/defaults/defaults.go Outdated Show resolved Hide resolved
bpf/node_config.h Show resolved Hide resolved
This removes every occurrences of sockops and sockmap as it was deprecated in v1.13.

Fixes: cilium#23556

Signed-off-by: Mohit Marathe <mohitmarathe23@gmail.com>
@qmonnet
Copy link
Member

qmonnet commented Apr 4, 2023

/test

Copy link
Member

@tklauser tklauser left a comment

Choose a reason for hiding this comment

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

Thanks

@tklauser tklauser requested a review from qmonnet April 4, 2023 11:39
Copy link
Member

@qmonnet qmonnet left a comment

Choose a reason for hiding this comment

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

All seems in order this time.

We're still waiting for the last few tests to complete, but everything is green so far, with one exception for BPF complexity tests. This is expected, and we validated that these tests pass on #24507.

Pending the last tests complete successfully, this is all good for me.

Thanks a lot!

@aspsk
Copy link
Contributor

aspsk commented Apr 4, 2023

ConformanceGKE triggered this flake: #22368

@qmonnet
Copy link
Member

qmonnet commented Apr 4, 2023

OK the timeout on ConformanceGKE is a known issue, and this workflow is not marked as required.
The comments from Timo have been addressed (and he's off this week), we're just missing a review from @cilium/endpoint (@tommyp1ckles, you validated once already but before the PR touched files owned by that team, would you mind taking another quick look please?)

@qmonnet qmonnet removed the dont-merge/needs-rebase This PR needs to be rebased because it has merge conflicts. label Apr 4, 2023
@qmonnet qmonnet added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Apr 4, 2023
@qmonnet qmonnet removed the request for review from ti-mo April 4, 2023 14:47
@aanm aanm merged commit 87c8746 into cilium:master Apr 4, 2023
55 of 57 checks passed
@qmonnet
Copy link
Member

qmonnet commented Apr 4, 2023

@mohit-marathe Thanks a lot for this work and for being super reactive all along!! 🚀
If you feel like contributing again in the future, just know that we don't usually get so many rebases to do. 😃

@mohit-marathe
Copy link
Contributor Author

@qmonnet Thanks! I learned a lot by working on this issue(like rebase) 😃 . I'm still learning about networking and ebpf. I hope to contribute and learn a lot from the community.
Cheers ✌️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup This includes no functional changes. kind/community-contribution This was a contribution made by a community member. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-blocker/1.14 This issue will prevent the release of the next version of Cilium. release-note/minor This PR changes functionality that users may find relevant to operating Cilium. sig/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove sockops-enable and friends
10 participants