Skip to content

Commit 97911e0

Browse files
pbholeborkmann
authored andcommitted
tools/bpf: bpftool, add xskmap in map types
When listed all maps, bpftool currently shows (null) for xskmap. Added xskmap type in map_type_name[] to show correct type. Signed-off-by: Prashant Bhole <[email protected]> Acked-by: Jakub Kicinski <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
1 parent 9db39f4 commit 97911e0

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
@@ -68,6 +68,7 @@ static const char * const map_type_name[] = {
6868
[BPF_MAP_TYPE_DEVMAP] = "devmap",
6969
[BPF_MAP_TYPE_SOCKMAP] = "sockmap",
7070
[BPF_MAP_TYPE_CPUMAP] = "cpumap",
71+
[BPF_MAP_TYPE_XSKMAP] = "xskmap",
7172
[BPF_MAP_TYPE_SOCKHASH] = "sockhash",
7273
[BPF_MAP_TYPE_CGROUP_STORAGE] = "cgroup_storage",
7374
};

0 commit comments

Comments
 (0)