[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210818105820.91894-1-liuxu623@gmail.com>
Date: Wed, 18 Aug 2021 18:58:18 +0800
From: Xu Liu <liuxu623@...il.com>
To: ast@...nel.org, daniel@...earbox.net, andrii@...nel.org,
kafai@...com, songliubraving@...com, yhs@...com,
john.fastabend@...il.com, kpsingh@...nel.org, davem@...emloft.net,
kuba@...nel.org
Cc: netdev@...r.kernel.org, bpf@...r.kernel.org,
linux-kernel@...r.kernel.org, Xu Liu <liuxu623@...il.com>
Subject: [PATCH bpf-next v2 0/2] bpf: Allow bpf_get_netns_cookie in BPF_PROG_TYPE_SOCK_OPS
v2: Added selftests
Xu Liu (2):
bpf: Allow bpf_get_netns_cookie in BPF_PROG_TYPE_SOCK_OPS
selftests/bpf: Test for get_netns_cookie
net/core/filter.c | 14 +++++
.../selftests/bpf/prog_tests/netns_cookie.c | 61 +++++++++++++++++++
.../selftests/bpf/progs/netns_cookie_prog.c | 39 ++++++++++++
3 files changed, 114 insertions(+)
create mode 100644 tools/testing/selftests/bpf/prog_tests/netns_cookie.c
create mode 100644 tools/testing/selftests/bpf/progs/netns_cookie_prog.c
--
2.28.0
Powered by blists - more mailing lists