Received: by 10.223.176.46 with SMTP id f43csp94970wra; Fri, 19 Jan 2018 14:22:20 -0800 (PST) X-Google-Smtp-Source: ACJfBotVEqCitqXfRIKpjtu6JVIGfHbeN0nKBoq9Q9chOBhy6fGLOCCkDkMvil4yNknGGiahn8C3 X-Received: by 10.99.125.74 with SMTP id m10mr27885514pgn.354.1516400540878; Fri, 19 Jan 2018 14:22:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516400540; cv=none; d=google.com; s=arc-20160816; b=JmE0g+t9o9Cr7tpR0hrYflT5HHXCob/D5Uvi/qAg6cZOpNEcika3MC6q4d3cnU6nuG mZUtmsHMyoi4oSU95nD40nmu3mxSukoeqYsyZfA93nttGR+HGxB/4tLknwsdF923TGAk nW1tAW6ajPIiDAglItkT/s94VJB9WtYhNya7WCVs4IL9MXPbh54YECHtMWvEZPvkLOtn +/TAdO8gjdnxpesA9wgtwt3BL6/ZbT/FczIp8CJ2Zn+2CIew1lDsoccmaFxiVr0cu6rX HX8IIom04S8+YLnGOvCQgm/vC9e9YzHILtzmCyBb4t0H8c+sdEZAqj+1ULpHXY3aXJKo e2Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=Fw722MKLLx5B/jsWjRFrSluq2MHk4GCEDvDMfLWRsgc=; b=jJQRyKHFnSXUo/52ARGheR1+qllUmZ1XpLXdqcasGi3Ulp/IAl5lwygfi7tyOAjLoT +f+8rvMNJcW51VuYXvM1CD27CZV4VBaRPwYM4/r5YWPVn6FvyD2iGp5JvFSUT6lzUDOv Vxqo7v5uuX60WTRTyvJdeJENJ1HO582muHC/qnnj8LDRGFCtVhbA5x6AZmpMLxNJ+7P7 xDF13zmPfHVr3ddtMKfLHuDVEbsZ2c9sxWPFLM0RAg9p3RiQXkowAv2PNEe00vSuyOgm fMmZBvSmx9tXTlQIpcuebGUEUZpx2IKYEd6s5PS92MD2oZbbKxW2dVlNdpTbNKto8cxx VCMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e22si5300289pfl.178.2018.01.19.14.22.06; Fri, 19 Jan 2018 14:22:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756582AbeASWTy (ORCPT + 99 others); Fri, 19 Jan 2018 17:19:54 -0500 Received: from www62.your-server.de ([213.133.104.62]:39965 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756492AbeASWTr (ORCPT ); Fri, 19 Jan 2018 17:19:47 -0500 Received: from [62.202.221.5] (helo=linux.home) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-SHA:256) (Exim 4.85_2) (envelope-from ) id 1ecf0j-0004jV-GK; Fri, 19 Jan 2018 23:19:45 +0100 Subject: Re: [PATCH bpf-next] bpftool: recognize BPF_PROG_TYPE_CGROUP_DEVICE programs To: Quentin Monnet , Roman Gushchin Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, Jakub Kicinski , Alexei Starovoitov References: <20180115191615.13911-1-guro@fb.com> <34c43a17-7832-413e-fea8-4ad0f80f1585@netronome.com> <20180119141739.GA22398@castle.DHCP.thefacebook.com> <29c01fd7-8f1e-91bf-0be6-a2b220e0e637@netronome.com> From: Daniel Borkmann Message-ID: Date: Fri, 19 Jan 2018 23:19:44 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <29c01fd7-8f1e-91bf-0be6-a2b220e0e637@netronome.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.99.2/24237/Fri Jan 19 22:22:11 2018) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/19/2018 03:37 PM, Quentin Monnet wrote: > 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 Applied to bpf-next, thanks for following up Roman!