bpftool: add support for BPF_MAP_TYPE_REUSEPORT_SOCKARRAY maps
authorRoman Gushchin <[email protected]>
Fri, 21 Sep 2018 22:47:20 +0000 (22:47 +0000)
committerDaniel Borkmann <[email protected]>
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 <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Daniel Borkmann <[email protected]>
Cc: Jakub Kicinski <[email protected]>
Cc: Yonghong Song <[email protected]>
Acked-by: Jakub Kicinski <[email protected]>
Acked-by: Song Liu <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
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)