microsoft / microsoft/WSL

Enable CONFIG_BPF_STREAM_PARSER to support SOCKMAP, SOCKHASH used by eBPF programs

Open
#8,343 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.