Replies: 1 comment
-
From ebpf slack.io: https://cilium.slack.com/archives/C4XCTGYEM/p1697489292050229 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
Request: In BPF_MAP_TYPE_HASH_OF_MAPS and BPF_MAP_TYPE_ARRAY_OF_MAPS, bpf2c should not allow
Compatibility with Linux eBPF:
As per Linux doc https://docs.kernel.org/bpf/map_of_maps.html
Currently, ebpf-for-windows does allow inner map to be BPF_MAP_TYPE_PROG_ARRAY.
Passed test case in ebpf-for-windows/tests/sample/tail_call_map.c
Outer map: BPF_MAP_TYPE_ARRAY_OF_MAPS
Inner map: BPF_MAP_TYPE_PROG_ARRAY
OS information
Windows 10 and above
Steps taken to reproduce bug
Refer to the test case in ebpf-for-windows/tests/sample/tail_call_map.c
Expected behavior
bpf2c should error if the Inner map is of type BPF_MAP_TYPE_PROG_ARRAY
Actual outcome
bpf2c currently supports inner map of type BPF_MAP_TYPE_PROG_ARRAY.
Additional details
No response
Beta Was this translation helpful? Give feedback.
All reactions