Enable CONFIG_BPF_STREAM_PARSER to support SOCKMAP, SOCKHASH used by eBPF programs
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 33.7k
- Forks
- 1.8k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 116
Description
https://github.com/microsoft/WSL2-Linux-Kernel/blob/d489414/include/linux/bpf_types.h#L106-L109
#if defined(CONFIG_BPF_STREAM_PARSER)
BPF_MAP_TYPE(BPF_MAP_TYPE_SOCKMAP, sock_map_ops)
BPF_MAP_TYPE(BPF_MAP_TYPE_SOCKHASH, sock_hash_ops)
#endif
https://github.com/microsoft/WSL2-Linux-Kernel/blob/d489414/Microsoft/config-wsl#L1433
# CONFIG_BPF_STREAM_PARSER is not set
https://github.com/microsoft/WSL2-Linux-Kernel/blob/d489414/Microsoft/config-wsl-arm64#L1418
# CONFIG_BPF_STREAM_PARSER is not set
BPF_MAP_TYPE_SOCKMAP and BPF_MAP_TYPE_SOCKHASH are very important & useful to eBPF programs, let's make them work! 😊
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with include/linux/bpf_types.h around the BPF_MAP_TYPE_SOCKMAP and BPF_MAP_TYPE_SOCKHASH entries, then inspect Microsoft/config-wsl and Microsoft/config-wsl-arm64 at the referenced settings. Enable CONFIG_BPF_STREAM_PARSER in both configurations and verify that SOCKMAP and SOCKHASH are available to eBPF programs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- networking, operating-systems
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100