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

datapath: Introduce helpers for __ctx_is checks #23820

Merged
merged 1 commit into from Jun 20, 2023
Merged

Conversation

spacewander
Copy link
Contributor

Only macros in function body are updated so it doesn't affect function definitions.

Fixes: #23008

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!

@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 16, 2023
@github-actions github-actions bot added the kind/community-contribution This was a contribution made by a community member. label Feb 16, 2023
@spacewander spacewander marked this pull request as ready for review February 17, 2023 01:38
@spacewander spacewander requested a review from a team as a code owner February 17, 2023 01:38
bpf/lib/qm.h Outdated
@@ -8,7 +8,10 @@

static inline void reset_queue_mapping(struct __ctx_buff *ctx __maybe_unused)
{
#if defined(RESET_QUEUES) && __ctx_is == __ctx_skb
#if defined(RESET_QUEUES)
Copy link
Member

Choose a reason for hiding this comment

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

nit: ifdef RESET_QUEUES

* request.
*/
return CTX_ACT_OK;
}
Copy link
Member

@borkmann borkmann Feb 17, 2023

Choose a reason for hiding this comment

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

nit: you could move the comment above the if (ctx_is_xdp()), and then just

if (ctx_is_xdp())
            return CTX_ACT_OK;

without the braces as you have in IPv6 path.

@spacewander
Copy link
Contributor Author

@borkmann @NikAleksandrov
Will this PR get accepted?

@sayboras sayboras added the release-note/misc This PR makes changes that have no direct user impact. label Feb 25, 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 25, 2023
@sayboras
Copy link
Member

/test

@spacewander
Copy link
Contributor Author

interesting. The verifier failed with 5.15 but passed in kernel earlier and later than it.
https://github.com/cilium/cilium/actions/runs/4272121832/jobs/7437056192

I tried to set up a vm box to test it locally, but I got kernel version 5.17.5-300.fc36.x86_64 not supported by verifier complexity tests error. Any suggestion?

bpf/lib/nodeport.h Outdated Show resolved Hide resolved
@github-actions

This comment was marked as resolved.

@github-actions github-actions bot added the stale The stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale. label Apr 10, 2023
@pchaigno pchaigno requested a review from borkmann April 10, 2023 04:35
@pchaigno pchaigno removed the stale The stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale. label Apr 10, 2023
@pchaigno
Copy link
Member

/test

Copy link
Member

@borkmann borkmann left a comment

Choose a reason for hiding this comment

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

lgtm

@joestringer joestringer added the dont-merge/needs-rebase This PR needs to be rebased because it has merge conflicts. label May 5, 2023
@joestringer
Copy link
Member

Reviews are in, but the PR is now out-of-date with the main branch and many of the tests failed (which we can't see the results any more due to expiry/timeouts.)

Next steps should be:

  • @spacewander please rebase the PR against the tip of main branch
  • Once the PR is rebased, a Cilium organization member can re-run the tests with /test
  • If the tests pass, this can be merged.

@maintainer-s-little-helper
Copy link

Commit 25d732654c75fb45269861f8d4a7e997f368ad70 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

@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-sign-off The author needs to add signoff to their commits before merge. label May 6, 2023
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-sign-off The author needs to add signoff to their commits before merge. label May 8, 2023
@github-actions
Copy link

github-actions bot commented Jun 8, 2023

This pull request has been automatically marked as stale because it
has not had recent activity. It will be closed if no further activity
occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale The stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale. label Jun 8, 2023
@joestringer
Copy link
Member

Sorry, this slipped through my review queue. Unfortunately the branch is out-of-date again. Also, the way that this PR has a "merge" commit breaks the merging - could you rebase without a merge commit against the latest upstream/main? Then we can follow up to get this merged. Feel free to ping me on Slack in #development channel if I'm taking too long to respond, it might be just that I lost track of the PR again.

@joestringer joestringer self-assigned this Jun 15, 2023
@github-actions github-actions bot removed the stale The stale bot thinks this issue is old. Add "pinned" label to prevent this from becoming stale. label Jun 16, 2023
Only macros in function body are updated so it doesn't
affect function definitions.

Fixes: cilium#23008

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
@spacewander
Copy link
Contributor Author

Sorry, this slipped through my review queue. Unfortunately the branch is out-of-date again. Also, the way that this PR has a "merge" commit breaks the merging - could you rebase without a merge commit against the latest upstream/main? Then we can follow up to get this merged. Feel free to ping me on Slack in #development channel if I'm taking too long to respond, it might be just that I lost track of the PR again.

Done

@sayboras
Copy link
Member

/test

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 19, 2023
@sayboras sayboras removed the dont-merge/needs-rebase This PR needs to be rebased because it has merge conflicts. label Jun 19, 2023
@borkmann borkmann merged commit c1dffab into cilium:main Jun 20, 2023
61 of 62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

datapath: Introduce helpers for __ctx_is checks
6 participants