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, datapath: unconditionally assume support for direct access to map values #24504

Merged
merged 1 commit into from Mar 28, 2023

Conversation

tklauser
Copy link
Member

Map helpers are allowed to access map values directly since kernel version 4.18 [1], [2].

For Cilium v1.14, the minimum required kernel version is 4.19.57 [4]. Thus we can now unconditionally assume support for direct access to map values.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d71962f3e627b5941804036755c844fabfb65ff5
[2] https://github.com/iovisor/bcc/blob/master/docs/kernel-versions.md#main-features
[3] https://docs.cilium.io/en/latest/operations/system_requirements/#base-requirements

For #22116

@tklauser tklauser added sig/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. release-note/misc This PR makes changes that have no direct user impact. labels Mar 21, 2023
@tklauser tklauser requested review from a team as code owners March 21, 2023 14:04
@tklauser tklauser requested a review from ldelossa March 21, 2023 14:04
@tklauser
Copy link
Member Author

/test

@tklauser tklauser force-pushed the pr/tklauser/bpf-direct-access-to-map branch from 0d045c6 to 4009cd7 Compare March 21, 2023 14:40
…p values

Map helpers are allowed to access map values directly since kernel
version 4.18 [1], [2].

For Cilium v1.14, the minimum required kernel version is 4.19.57 [4].
Thus we can now unconditionally assume support for direct access to map
values.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d71962f3e627b5941804036755c844fabfb65ff5
[2] https://github.com/iovisor/bcc/blob/master/docs/kernel-versions.md#main-features
[3] https://docs.cilium.io/en/latest/operations/system_requirements/#base-requirements

For #22116

Signed-off-by: Tobias Klauser <tobias@cilium.io>
@tklauser tklauser force-pushed the pr/tklauser/bpf-direct-access-to-map branch from 4009cd7 to ceae2f5 Compare March 21, 2023 14:41
@tklauser
Copy link
Member Author

/test

Copy link
Member

@sahid sahid left a comment

Choose a reason for hiding this comment

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

checkpatch is complaining against commit message :-)

Just in case if you want during your update to add the commit that introduced the change: d7c5c0c

@tklauser
Copy link
Member Author

Thanks for the review.

checkpatch is complaining against commit message :-)

That check is not marked as required, so I'd probably only update the commit message and re-push in case there are other review comments to address.

Just in case if you want during your update to add the commit that introduced the change: d7c5c0c

Thanks for the pointer.

@tklauser tklauser merged commit 5ef999c into master Mar 28, 2023
41 of 42 checks passed
@tklauser tklauser deleted the pr/tklauser/bpf-direct-access-to-map branch March 28, 2023 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact. 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.

None yet

3 participants