bpf: add helper for retrieving current numa node id
authorDaniel Borkmann <[email protected]>
Fri, 21 Oct 2016 10:46:33 +0000 (12:46 +0200)
committerDavid S. Miller <[email protected]>
Sat, 22 Oct 2016 21:05:52 +0000 (17:05 -0400)
commit2d0e30c30f84d08dc16f0f2af41f1b8a85f0755e
treea58da7082e4dcfea4b7782e72aec65920cfd5905
parenta10b91b8b81c29b87ff5a6d58c1402898337b956
bpf: add helper for retrieving current numa node id

Use case is mainly for soreuseport to select sockets for the local
numa node, but since generic, lets also add this for other networking
and tracing program types.

Suggested-by: Eric Dumazet <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
include/linux/bpf.h
include/uapi/linux/bpf.h
kernel/bpf/core.c
kernel/bpf/helpers.c
kernel/trace/bpf_trace.c
net/core/filter.c