diff options
author | Martin KaFai Lau <kafai@fb.com> | 2017-06-05 12:15:47 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-06 15:41:22 -0400 |
commit | f3f1c054c288bb6e503005e6d73611151ed20e91 (patch) | |
tree | ae79e214e4c8ea0d144f69ac8f0bf85b726752c0 /lib/strnlen_user.c | |
parent | dc4bb0e2356149aee4cdae061936f3bbdd45595c (diff) | |
download | linux-f3f1c054c288bb6e503005e6d73611151ed20e91.tar.gz linux-f3f1c054c288bb6e503005e6d73611151ed20e91.tar.bz2 linux-f3f1c054c288bb6e503005e6d73611151ed20e91.zip |
bpf: Introduce bpf_map ID
This patch generates an unique ID for each created bpf_map.
The approach is similar to the earlier patch for bpf_prog ID.
It is worth to note that the bpf_map's ID and bpf_prog's ID
are in two independent ID spaces and both have the same valid range:
[1, INT_MAX).
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Alexei Starovoitov <ast@fb.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/strnlen_user.c')
0 files changed, 0 insertions, 0 deletions