OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8b394f
)
bpf: bpftool, support for sockhash
author
John Fastabend
<john.fastabend@gmail.com>
Mon, 14 May 2018 17:00:19 +0000
(10:00 -0700)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Wed, 16 May 2018 20:00:21 +0000
(22:00 +0200)
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>
tools/bpf/bpftool/map.c
patch
|
blob
|
history
diff --git
a/tools/bpf/bpftool/map.c
b/tools/bpf/bpftool/map.c
index
af6766e
..
097b1a5
100644
(file)
--- 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)