diff options
author | John Fastabend <john.fastabend@gmail.com> | 2018-05-14 19:00:19 +0200 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-05-16 22:00:21 +0200 |
commit | 62c52d1fddb5ef201e3a25d7bd1b79fcb0ca42b8 (patch) | |
tree | cc46bf2ebf4d8c1c2fef46affd67d622b405dedc /tools/bpf/bpftool | |
parent | bpf: selftest additions for SOCKHASH (diff) | |
download | linux-62c52d1fddb5ef201e3a25d7bd1b79fcb0ca42b8.tar.xz linux-62c52d1fddb5ef201e3a25d7bd1b79fcb0ca42b8.zip |
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 <john.fastabend@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/bpf/bpftool')
-rw-r--r-- | tools/bpf/bpftool/map.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/bpf/bpftool/map.c b/tools/bpf/bpftool/map.c index af6766e956ba..097b1a5e046b 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) |