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, ipcache: unconditionally assume support for LPM trie maps #24258
Conversation
104f019
to
0e3aae3
Compare
LPM trie maps are available since kernel version 4.11 [1], [2]. For Cilium v1.14, the minimum required kernel version is 4.19.57 [3]. Thus we can now unconditionally assume support for that map type. [1] https://github.com/iovisor/bcc/blob/master/docs/kernel-versions.md#map-types [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b95a5c4db09bc7c253636cb84dc9b12c577fd5a0 [3] https://docs.cilium.io/en/latest/operations/system_requirements/#base-requirements For #22116 Signed-off-by: Tobias Klauser <tobias@cilium.io>
For Cilium v1.14, the minimum required kernel version is 4.19.57 [1]. Thus we can now unconditionally assume support for map names which are available in version >= 4.15. [1] https://docs.cilium.io/en/latest/operations/system_requirements/#base-requirements For #22116 Signed-off-by: Tobias Klauser <tobias@cilium.io>
0e3aae3
to
b6c67ba
Compare
/test |
The checkpatch failure is about the use of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related to the LPM trie maps but one of these cleanup PRs of 4.8/4.9 stuff should probably increase the versions in the general kernel version requirement checks:
cilium/pkg/datapath/linux/requirements.go
Line 28 in 7dbc63a
minKernelVer = "4.8.0" |
Good point. I've noticed this as well when working on this PR but decided to leave it for a separate PR where the specifics of which versions exactly should be required could be discussed. I've added an item to the checklist in #22116 for that. Please feel free to open a PR to address that. |
Also clang in there should be reworked. |
LPM trie maps are available since kernel version 4.11 [1], [2]. For Cilium v1.14, the minimum required kernel version is 4.19.57 [3]. Thus we can now unconditionally assume support for that map type.
[1] https://github.com/iovisor/bcc/blob/master/docs/kernel-versions.md#map-types
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b95a5c4db09bc7c253636cb84dc9b12c577fd5a0
[3] https://docs.cilium.io/en/latest/operations/system_requirements/#base-requirements
For #22116