Skip to content

Add BPF numa id helper

Daniel Borkmann netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- Missed __weak definition when bpf syscall is not enabled, sorry.
- Rest as is.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bpf: add helper for retrieving current numa node idinclude/linux/bpf.h include/uapi/linux/bpf.h kernel/bpf/core.c +3 more+24 -01 reply
2/2reuseport, bpf: add test case for bpf_get_numa_node_idtools/testing/selftests/net/.gitignore tools/testing/selftests/net/Makefile tools/testing/selftests/net/reuseport_bpf_numa.c+263 -42 replies

Reviews trailers per patch

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

PatchAlexei StarovoitovEric Dumazet
1/2A-b A-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 net-next v2 0/2] Add BPF numa id helper

This patch set adds a helper for retrieving current numa node id and a test case for SO_REUSEPORT.

Thanks!

v1 -> v2:
- Missed __weak definition when bpf syscall is not enabled, sorry.
- Rest as is.

Daniel Borkmann (2):
bpf: add helper for retrieving current numa node id reuseport, bpf: add test case for bpf_get_numa_node_id

 include/linux/bpf.h                              |   1 +
 include/uapi/linux/bpf.h                         |   6 +
 kernel/bpf/core.c                                |   1 +
 kernel/bpf/helpers.c                             |  12 ++
 kernel/trace/bpf_trace.c                         |   2 +
 net/core/filter.c                                |   2 +
 tools/testing/selftests/net/.gitignore           |   1 +
 tools/testing/selftests/net/Makefile             |  11 +-
 tools/testing/selftests/net/reuseport_bpf_numa.c | 255 +++++++++++++++++++++++
 9 files changed, 287 insertions(+), 4 deletions(-)
 create mode 100644 tools/testing/selftests/net/reuseport_bpf_numa.c
Signature · 1 line
1.9.3