diff options
author | Hengqi Chen <hengqi.chen@gmail.com> | 2021-10-01 00:14:56 +0800 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-10-01 15:31:51 -0700 |
commit | bd368cb554d685c60e65ab799bf238663c682105 (patch) | |
tree | 99c4e3b27c85b415115fb1f648e7d663d4f1f669 /tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c | |
parent | libbpf: Support uniform BTF-defined key/value specification across all BPF maps (diff) | |
download | linux-dev-bd368cb554d685c60e65ab799bf238663c682105.tar.xz linux-dev-bd368cb554d685c60e65ab799bf238663c682105.zip |
selftests/bpf: Use BTF-defined key/value for map definitions
Change map definitions in BPF selftests to use BTF-defined
key/value types. This unifies the map definitions and ensures
libbpf won't emit warning about retrying map creation.
Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210930161456.3444544-3-hengqi.chen@gmail.com
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c')
-rw-r--r-- | tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c b/tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c index 26e77dcc7e91..0f9bc258225e 100644 --- a/tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c +++ b/tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c @@ -24,8 +24,8 @@ int _version SEC("version") = 1; struct { __uint(type, BPF_MAP_TYPE_ARRAY_OF_MAPS); __uint(max_entries, 1); - __uint(key_size, sizeof(__u32)); - __uint(value_size, sizeof(__u32)); + __type(key, __u32); + __type(value, __u32); } outer_map SEC(".maps"); struct { |