]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bpf: add get_netns_cookie helper to cgroup_skb programs
authorMahe Tardy <mahe.tardy@gmail.com>
Tue, 25 Feb 2025 12:50:30 +0000 (12:50 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 26 Feb 2025 15:35:51 +0000 (07:35 -0800)
commitc221d3744ad38a9655aba8235e1d783c6d4aed5a
tree64d71dee724a70f417f0eb24e1eb8ec80a1d3722
parent4e4136c6446753e6da4424a734f84de82c70600f
bpf: add get_netns_cookie helper to cgroup_skb programs

This is needed in the context of Cilium and Tetragon to retrieve netns
cookie from hostns when traffic leaves Pod, so that we can correlate
skb->sk's netns cookie.

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
Link: https://lore.kernel.org/r/20250225125031.258740-1-mahe.tardy@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
net/core/filter.c