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

Provide 15-byte context inputs to Program.{Run,Benchmark,Test} #792

Merged
merged 2 commits into from
Sep 14, 2022

Conversation

ti-mo
Copy link
Collaborator

@ti-mo ti-mo commented Sep 14, 2022

Centralize allocation of the buffer to avoid some duplication and ease future changes to the minimum buffer size.

The patch that introduced this regression doesn't officially land until 6.0, but it has already been backported to kernels as early as 5.15.65 (potentially even earlier?).

cc @dylandreimerink

@ti-mo ti-mo requested a review from lmb September 14, 2022 12:49
internal/prog.go Outdated Show resolved Hide resolved
…ontexts

After a38fb6b, now centralize the allocation of a 15-byte buffer
for PROG_TEST_RUN using a once-allocated var in internal/.

Signed-off-by: Timo Beckers <timo@isovalent.com>
Signed-off-by: Timo Beckers <timo@isovalent.com>
@ti-mo ti-mo merged commit 2ca994b into cilium:master Sep 14, 2022
@ti-mo ti-mo deleted the tb/14-byte-bpf-context branch September 14, 2022 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants