]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Allow bpf_get_netns_cookie in BPF_PROG_TYPE_SK_MSG
authorXu Liu <liuxu623@gmail.com>
Fri, 20 Aug 2021 07:17:11 +0000 (15:17 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 24 Aug 2021 21:17:53 +0000 (14:17 -0700)
commite429ad2c6ade72f1ca391d8c6d826fcf402782b1
treefd84bce9d557fbc71228251ff8dead9bcaa2a15b
parent73da837b620852cf6b553501bdc54cdabe52d502
bpf: Allow bpf_get_netns_cookie in BPF_PROG_TYPE_SK_MSG

We'd like to be able to identify netns from sk_msg hooks
to accelerate local process communication form different netns.

Signed-off-by: Xu Liu <liuxu623@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210820071712.52852-2-liuxu623@gmail.com
net/core/filter.c