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

bpf, cocci: small follow-ups #12962

Merged
merged 2 commits into from Aug 25, 2020
Merged

bpf, cocci: small follow-ups #12962

merged 2 commits into from Aug 25, 2020

Conversation

borkmann
Copy link
Member

See commit msgs. GH actions / smoke-tests are enough to run since it doesn't affect any code logic.

Small leftover cleanup. Tested with: `BUILD_PERMUTATIONS=1 make`.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
It was suggesting that ctx should be marked const:

  static __always_inline __maybe_unused void
  bpf_clear_meta(struct __sk_buff *ctx)
  {
        __u32 zero = 0;

        WRITE_ONCE(ctx->cb[0], zero);
        WRITE_ONCE(ctx->cb[1], zero);
        WRITE_ONCE(ctx->cb[2], zero);
        WRITE_ONCE(ctx->cb[3], zero);
        WRITE_ONCE(ctx->cb[4], zero);
  }

Extend to cover x->z[...].

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
@borkmann borkmann added area/misc Impacts miscellaneous areas of the code not otherwise owned by another area. release-note/misc This PR makes changes that have no direct user impact. labels Aug 25, 2020
@borkmann borkmann requested review from pchaigno and a team August 25, 2020 07:45
Copy link
Member

@pchaigno pchaigno left a comment

Choose a reason for hiding this comment

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

LGTM!

@borkmann borkmann merged commit 9af24ee into master Aug 25, 2020
@borkmann borkmann deleted the pr/bwm-follow-ups2 branch August 25, 2020 08:15
@borkmann borkmann added the feature/bandwidth-manager Impacts BPF bandwidth manager. label Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/misc Impacts miscellaneous areas of the code not otherwise owned by another area. feature/bandwidth-manager Impacts BPF bandwidth manager. 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.

None yet

3 participants