Skip to contentSkip to conversation

bpftool: add support for BPF_MAP_TYPE_REUSEPORT_SOCKARRAY maps

PATCH Applied Roman Gushchin 4 participants 4 messages Sep 21, 2018 – Sep 25, 2018

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bpftool: add support for BPF_MAP_TYPE_REUSEPORT_SOCKARRAY maps

Add BPF_MAP_TYPE_REUSEPORT_SOCKARRAY map type to the list of maps types which bpftool recognizes.

Cc Alexei Starovoitov <[email protected]>
Cc Daniel Borkmann <[email protected]>
Cc Jakub Kicinski <[email protected]>
Cc Yonghong Song <[email protected]>
---
 tools/bpf/bpftool/map.c | 1 +
 1 file changed, 1 insertion(+)
tools/bpf/bpftool/map.c +1 -0
index af8ad32fa6e9..e22fbe8b975f 100644
@@ -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)
Signature · 1 line
2.17.1
Acked-by
#2 lore raw
Quoted 5 lines · Jakub Kicinski
Quoted 3 lines · Roman Gushchin

Add BPF_MAP_TYPE_REUSEPORT_SOCKARRAY map type to the list of maps types which bpftool recognizes.

Quoted 7 lines
Quoted 5 lines
Cc Alexei Starovoitov <[email protected]>
Cc Daniel Borkmann <[email protected]>
Cc Jakub Kicinski <[email protected]>
Cc Yonghong Song <[email protected]>