From: Quentin Monnet Subject: Re: [PATCH bpf-next] bpftool: recognize BPF_PROG_TYPE_CGROUP_DEVICE programs Date: Fri, 19 Jan 2018 14:37:25 +0000 Message-ID: <29c01fd7-8f1e-91bf-0be6-a2b220e0e637@netronome.com> References: <20180115191615.13911-1-guro@fb.com> <34c43a17-7832-413e-fea8-4ad0f80f1585@netronome.com> <20180119141739.GA22398@castle.DHCP.thefacebook.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, Jakub Kicinski , Daniel Borkmann , Alexei Starovoitov To: Roman Gushchin Return-path: Received: from mail-wm0-f44.google.com ([74.125.82.44]:35783 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754964AbeASOh2 (ORCPT ); Fri, 19 Jan 2018 09:37:28 -0500 Received: by mail-wm0-f44.google.com with SMTP id r78so4004384wme.0 for ; Fri, 19 Jan 2018 06:37:27 -0800 (PST) In-Reply-To: <20180119141739.GA22398@castle.DHCP.thefacebook.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: 2018-01-19 14:17 UTC+0000 ~ Roman Gushchin > On Mon, Jan 15, 2018 at 07:32:01PM +0000, Quentin Monnet wrote: [...] >> Looks good, thanks Roman! >> Would you mind updating the map names as well? It seems the >> BPF_MAP_TYPE_CPUMAP is missing from the list in map.c. > > Hello, Quentin! > > > Here is the patch. > > > Thanks! > > -- > > From 16245383a894038a63cc1ad4b77629ba704aaa38 Mon Sep 17 00:00:00 2001 > From: Roman Gushchin > Date: Fri, 19 Jan 2018 14:07:38 +0000 > Subject: [PATCH bpf-next] bpftool: recognize BPF_MAP_TYPE_CPUMAP maps > > Add BPF_MAP_TYPE_CPUMAP map type to the list > of map type recognized by bpftool and define > corresponding text representation. > > Signed-off-by: Roman Gushchin > Cc: Quentin Monnet > Cc: Jakub Kicinski > Cc: Daniel Borkmann > Cc: Alexei Starovoitov > --- > tools/bpf/bpftool/map.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/bpf/bpftool/map.c b/tools/bpf/bpftool/map.c > index a152c1a5c94c..f95fa67bb498 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_HASH_OF_MAPS] = "hash_of_maps", > [BPF_MAP_TYPE_DEVMAP] = "devmap", > [BPF_MAP_TYPE_SOCKMAP] = "sockmap", > + [BPF_MAP_TYPE_CPUMAP] = "cpumap", > }; > > static unsigned int get_possible_cpus(void) > Good, thank you! Acked-by: Quentin Monnet