]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bpf: add get_netns_cookie helper to tc programs
authorMahe Tardy <mahe.tardy@gmail.com>
Mon, 7 Oct 2024 09:59:57 +0000 (09:59 +0000)
committerMartin KaFai Lau <martin.lau@kernel.org>
Tue, 8 Oct 2024 19:06:43 +0000 (12:06 -0700)
commiteb62f49de7eca5917be8cebb3ad8aa3710af7021
tree318cacaf32480c07230f9acc52c3c8782f3245e7
parentbc9b3fb827fceec4e05564d6e668280f4470ab5b
bpf: add get_netns_cookie helper to tc 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/20241007095958.97442-1-mahe.tardy@gmail.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
net/core/filter.c