bpf: add helper for retrieving current numa node id
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 21 Oct 2016 10:46:33 +0000 (12:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
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 <edumazet@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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