From: John Fastabend Date: Mon, 14 May 2018 17:00:19 +0000 (-0700) Subject: bpf: bpftool, support for sockhash X-Git-Tag: v4.18-rc1~114^2~223^2~5^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62c52d1fddb5ef201e3a25d7bd1b79fcb0ca42b8;p=thirdparty%2Flinux.git bpf: bpftool, support for sockhash This adds the SOCKHASH map type to bpftools so that we get correct pretty printing. Signed-off-by: John Fastabend Acked-by: David S. Miller Signed-off-by: Daniel Borkmann --- diff --git a/tools/bpf/bpftool/map.c b/tools/bpf/bpftool/map.c index af6766e956baf..097b1a5e046b2 100644 --- a/tools/bpf/bpftool/map.c +++ b/tools/bpf/bpftool/map.c @@ -66,6 +66,7 @@ static const char * const map_type_name[] = { [BPF_MAP_TYPE_DEVMAP] = "devmap", [BPF_MAP_TYPE_SOCKMAP] = "sockmap", [BPF_MAP_TYPE_CPUMAP] = "cpumap", + [BPF_MAP_TYPE_SOCKHASH] = "sockhash", }; static bool map_is_per_cpu(__u32 type)