Commit 17eb1641 authored by kwb0523's avatar kwb0523
Browse files

bpf: Allow bpf_get_netns_cookie in BPF_PROG_TYPE_SK_MSG

mainline inclusion
from mainline-v6.5-rc3
commit fab60e29
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I7NL40
CVE: NA

Reference: https://github.com/torvalds/linux/commit/fab60e29fcc6d60396da20d63d45fd0d305ba4e4



----------------------------------------------------------------------

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

Signed-off-by: default avatarXu Liu <liuxu623@gmail.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210820071712.52852-2-liuxu623@gmail.com


Signed-off-by: default avatarJofDiamonds <kwb0523@163.com>
Reviewed-by: default avatarwuchangye <wuchangye@huawei.com>
parent f8082454
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment