lkml.org 
[lkml]   [2021]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH bpf-next 0/2] bpf: Allow bpf_get_netns_cookie in BPF_PROG_TYPE_SK_MSG
Date
We'd like to be able to identify netns from sk_msg hooks
to accelerate local process communication form different netns.

Xu Liu (2):
bpf: Allow bpf_get_netns_cookie in BPF_PROG_TYPE_SK_MSG
selftests/bpf: Test for get_netns_cookie

net/core/filter.c | 14 +++++
.../selftests/bpf/prog_tests/netns_cookie.c | 57 ++++++++++++-------
.../selftests/bpf/progs/netns_cookie_prog.c | 55 ++++++++++++++++--
3 files changed, 102 insertions(+), 24 deletions(-)

--
2.28.0

\
 
 \ /
  Last update: 2021-08-20 09:17    [W:0.032 / U:0.956 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site