Skip to content

Commit a55aaf6

Browse files
rgushchinborkmann
authored andcommitted
bpftool: recognize BPF_MAP_TYPE_CPUMAP maps
Add BPF_MAP_TYPE_CPUMAP map type to the list of map type recognized by bpftool and define corresponding text representation. Signed-off-by: Roman Gushchin <[email protected]> Cc: Quentin Monnet <[email protected]> Cc: Jakub Kicinski <[email protected]> Cc: Daniel Borkmann <[email protected]> Cc: Alexei Starovoitov <[email protected]> Acked-by: Quentin Monnet <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
1 parent 15e541e commit a55aaf6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/bpf/bpftool/map.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ static const char * const map_type_name[] = {
6666
[BPF_MAP_TYPE_HASH_OF_MAPS] = "hash_of_maps",
6767
[BPF_MAP_TYPE_DEVMAP] = "devmap",
6868
[BPF_MAP_TYPE_SOCKMAP] = "sockmap",
69+
[BPF_MAP_TYPE_CPUMAP] = "cpumap",
6970
};
7071

7172
static unsigned int get_possible_cpus(void)

0 commit comments

Comments
 (0)