Message ID | 20180921224700.10524-1-guro@fb.com |
---|---|
State | Accepted, archived |
Delegated to: | BPF Maintainers |
Headers | show |
Series | [bpf-next] bpftool: add support for BPF_MAP_TYPE_REUSEPORT_SOCKARRAY maps | expand |
On Fri, 21 Sep 2018 22:47:20 +0000, Roman Gushchin wrote: > Add BPF_MAP_TYPE_REUSEPORT_SOCKARRAY map type to the list > of maps types which bpftool recognizes. > > Signed-off-by: Roman Gushchin <guro@fb.com> > Cc: Alexei Starovoitov <ast@kernel.org> > Cc: Daniel Borkmann <daniel@iogearbox.net> > Cc: Jakub Kicinski <jakub.kicinski@netronome.com> > Cc: Yonghong Song <yhs@fb.com> Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
On Fri, Sep 21, 2018 at 5:10 PM Jakub Kicinski <jakub.kicinski@netronome.com> wrote: > > On Fri, 21 Sep 2018 22:47:20 +0000, Roman Gushchin wrote: > > Add BPF_MAP_TYPE_REUSEPORT_SOCKARRAY map type to the list > > of maps types which bpftool recognizes. > > > > Signed-off-by: Roman Gushchin <guro@fb.com> > > Cc: Alexei Starovoitov <ast@kernel.org> > > Cc: Daniel Borkmann <daniel@iogearbox.net> > > Cc: Jakub Kicinski <jakub.kicinski@netronome.com> > > Cc: Yonghong Song <yhs@fb.com> > > Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com> Acked-by: Song Liu <songliubraving@fb.com>
On 09/22/2018 12:47 AM, Roman Gushchin wrote: > Add BPF_MAP_TYPE_REUSEPORT_SOCKARRAY map type to the list > of maps types which bpftool recognizes. > > Signed-off-by: Roman Gushchin <guro@fb.com> > Cc: Alexei Starovoitov <ast@kernel.org> > Cc: Daniel Borkmann <daniel@iogearbox.net> > Cc: Jakub Kicinski <jakub.kicinski@netronome.com> > Cc: Yonghong Song <yhs@fb.com> Applied to bpf-next, thanks Roman!
diff --git a/tools/bpf/bpftool/map.c b/tools/bpf/bpftool/map.c index af8ad32fa6e9..e22fbe8b975f 100644 --- a/tools/bpf/bpftool/map.c +++ b/tools/bpf/bpftool/map.c @@ -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)
Add BPF_MAP_TYPE_REUSEPORT_SOCKARRAY map type to the list of maps types which bpftool recognizes. Signed-off-by: Roman Gushchin <guro@fb.com> Cc: Alexei Starovoitov <ast@kernel.org> Cc: Daniel Borkmann <daniel@iogearbox.net> Cc: Jakub Kicinski <jakub.kicinski@netronome.com> Cc: Yonghong Song <yhs@fb.com> --- tools/bpf/bpftool/map.c | 1 + 1 file changed, 1 insertion(+)