Skip to content

bpf: Allow bpf_get_netns_cookie in BPF_PROG_TYPE_SOCK_OPS

Xu Liu bpf lkml netdev 2 versions – Applied

Status from this message: This series was applied to bpf/bpf-next.git (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesApplied 2/2
  2. v11 patch 1 replySuperseded

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bpf: Allow bpf_get_netns_cookie in BPF_PROG_TYPE_SOCK_OPSnet/core/filter.c+14 -01 replyApplied
2/2selftests/bpf: Test for get_netns_cookietools/testing/selftests/bpf/prog_tests/netns_cookie.c tools/testing/selftests/bpf/progs/netns_cookie_prog.c+100 -01 replyApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchSong Liu
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [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
Signature · 1 line
2.28.0