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

map: ignore BPF_F_RDONLY_PROG for DevMap compatibility check #930

Merged
merged 2 commits into from
Feb 13, 2023
Merged

map: ignore BPF_F_RDONLY_PROG for DevMap compatibility check #930

merged 2 commits into from
Feb 13, 2023

Conversation

aibor
Copy link
Contributor

@aibor aibor commented Feb 8, 2023

Allow DevMap and DevMapHash flags to differ in BPF_F_RDONLY_PROG.

Fixes #925.

With MapOption PinPath set maps pinned by name are automatically reused
if present. This commit adds a test for this procedure. It fails for
devmaps as described in #925.

Signed-off-by: Tobias Böhm <code@aibor.de>
Remove automatically added BPF_F_RDONLY_PROG flag from devmaps.

Fixes #925

Signed-off-by: Tobias Böhm <code@aibor.de>
@lmb lmb changed the title Devmap compatibility checking map: ignore BPF_F_RDONLY_PROG for DevMap and DevMapHash Feb 13, 2023
@lmb lmb changed the title map: ignore BPF_F_RDONLY_PROG for DevMap and DevMapHash map: ignore BPF_F_RDONLY_PROG for DevMap compatibility check Feb 13, 2023
@lmb lmb merged commit 351d819 into cilium:master Feb 13, 2023
@lmb
Copy link
Collaborator

lmb commented Feb 13, 2023

Thanks for the detailed bug report + bugfix!

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.

Automatic pin reusing fails for devmaps
2 participants