bpftool: add support for BPF_MAP_TYPE_REUSEPORT_SOCKARRAY maps
authorRoman Gushchin <guro@fb.com>
Fri, 21 Sep 2018 22:47:20 +0000 (22:47 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 25 Sep 2018 15:30:40 +0000 (17:30 +0200)
Add BPF_MAP_TYPE_REUSEPORT_SOCKARRAY map type to the list
of maps types which bpftool recognizes.

Signed-off-by: Roman Gushchin <guro@fb.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Jakub Kicinski <jakub.kicinski@netronome.com>
Cc: Yonghong Song <yhs@fb.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/map.c

index af8ad32fa6e9c3fa057960226a1e4d410085631f..e22fbe8b975f21529f00e81d8bf1feb19bf2f645 100644 (file)
@@ -71,6 +71,7 @@ static const char * const map_type_name[] = {
        [BPF_MAP_TYPE_XSKMAP]           = "xskmap",
        [BPF_MAP_TYPE_SOCKHASH]         = "sockhash",
        [BPF_MAP_TYPE_CGROUP_STORAGE]   = "cgroup_storage",
+       [BPF_MAP_TYPE_REUSEPORT_SOCKARRAY] = "reuseport_sockarray",
 };
 
 static bool map_is_per_cpu(__u32 type)