linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] bpf: Allow bpf_get_netns_cookie in BPF_PROG_TYPE_SK_MSG
@ 2021-08-20  7:17 Xu Liu
  2021-08-20  7:17 ` [PATCH bpf-next 1/2] " Xu Liu
  2021-08-20  7:17 ` [PATCH bpf-next 2/2] selftests/bpf: Test for get_netns_cookie Xu Liu
  0 siblings, 2 replies; 3+ messages in thread
From: Xu Liu @ 2021-08-20  7:17 UTC (permalink / raw)
  To: ast, daniel, andrii, kafai, songliubraving, yhs, john.fastabend,
	kpsingh, davem, kuba
  Cc: netdev, bpf, linux-kernel, Xu Liu

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-20  7:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-20  7:17 [PATCH bpf-next 0/2] bpf: Allow bpf_get_netns_cookie in BPF_PROG_TYPE_SK_MSG Xu Liu
2021-08-20  7:17 ` [PATCH bpf-next 1/2] " Xu Liu
2021-08-20  7:17 ` [PATCH bpf-next 2/2] selftests/bpf: Test for get_netns_cookie Xu Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).