diff options
| author | David S. Miller <[email protected]> | 2016-10-22 17:06:09 -0400 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-10-22 17:06:09 -0400 |
| commit | 67dc15967303271657e37373fd590093bd095caf (patch) | |
| tree | 8aebb2b1bf64250bcfaa35c865099a480bf6c8ac /include/uapi/linux | |
| parent | a10b91b8b81c29b87ff5a6d58c1402898337b956 (diff) | |
| parent | 3c2c3c16aaf6a83902beb6063488e2c907de62e9 (diff) | |
Merge branch 'bpf-numa-id'
Daniel Borkmann says:
====================
Add BPF numa id helper
This patch set adds a helper for retrieving current numa node
id and a test case for SO_REUSEPORT.
====================
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/bpf.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index f09c70b97eca..374ef582ae18 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -426,6 +426,12 @@ enum bpf_func_id { */ BPF_FUNC_set_hash_invalid, + /** + * bpf_get_numa_node_id() + * Returns the id of the current NUMA node. + */ + BPF_FUNC_get_numa_node_id, + __BPF_FUNC_MAX_ID, }; |