diff options
author | John Fastabend <john.fastabend@gmail.com> | 2018-05-14 13:00:19 -0400 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-05-16 16:00:21 -0400 |
commit | 62c52d1fddb5ef201e3a25d7bd1b79fcb0ca42b8 (patch) | |
tree | cc46bf2ebf4d8c1c2fef46affd67d622b405dedc | |
parent | b8b394faa92418521829bbd4ae9cb22fb6c504ed (diff) |
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>
-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[] = { | |||
66 | [BPF_MAP_TYPE_DEVMAP] = "devmap", | 66 | [BPF_MAP_TYPE_DEVMAP] = "devmap", |
67 | [BPF_MAP_TYPE_SOCKMAP] = "sockmap", | 67 | [BPF_MAP_TYPE_SOCKMAP] = "sockmap", |
68 | [BPF_MAP_TYPE_CPUMAP] = "cpumap", | 68 | [BPF_MAP_TYPE_CPUMAP] = "cpumap", |
69 | [BPF_MAP_TYPE_SOCKHASH] = "sockhash", | ||
69 | }; | 70 | }; |
70 | 71 | ||
71 | static bool map_is_per_cpu(__u32 type) | 72 | static bool map_is_per_cpu(__u32 type) |