From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761883AbcALHol (ORCPT ); Tue, 12 Jan 2016 02:44:41 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:58078 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761383AbcALHok (ORCPT ); Tue, 12 Jan 2016 02:44:40 -0500 Date: Mon, 11 Jan 2016 23:44:31 -0800 From: Martin KaFai Lau To: Ming Lei CC: Network Development , Linux Kernel Mailing List , FB Kernel Team , Alexei Starovoitov Subject: Re: [PATCH net-next 2/4] bpf: bpf_htab: Add BPF_MAP_TYPE_PERCPU_HASH Message-ID: <20160112074420.GA55122@kafai-mba.local> References: <1452206155-1492617-1-git-send-email-kafai@fb.com> <1452206155-1492617-3-git-send-email-kafai@fb.com> <20160112031148.GA13416@kafai-mba.local> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20160112031148.GA13416@kafai-mba.local> User-Agent: Mutt/1.5.23.1 (2014-03-12) X-Originating-IP: [192.168.52.123] X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-01-12_03:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 11, 2016 at 07:11:48PM -0800, Martin KaFai Lau wrote: > On Sat, Jan 09, 2016 at 06:06:15PM +0800, Ming Lei wrote: > > On Fri, Jan 8, 2016 at 6:35 AM, Martin KaFai Lau wrote: > > > This patch adds BPFMAP_TYPE_PERCPU_HASH map type and its > > > htab_map_ops implementation. > > > > > > Signed-off-by: Martin KaFai Lau > > > --- > > > include/uapi/linux/bpf.h | 1 + > > > kernel/bpf/hashtab.c | 201 ++++++++++++++++++++++++++++++++++++++++++++++- > > > 2 files changed, 201 insertions(+), 1 deletion(-) > > > > > > diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h > > > index 8bed7f1..e4f8060 100644 > > > --- a/include/uapi/linux/bpf.h > > > +++ b/include/uapi/linux/bpf.h > > > @@ -81,6 +81,7 @@ enum bpf_map_type { > > > BPF_MAP_TYPE_ARRAY, > > > BPF_MAP_TYPE_PROG_ARRAY, > > > BPF_MAP_TYPE_PERF_EVENT_ARRAY, > > > + BPF_MAP_TYPE_PERCPU_HASH, > > > }; > > > > > > enum bpf_prog_type { > > > diff --git a/kernel/bpf/hashtab.c b/kernel/bpf/hashtab.c > > > index d55df8c..63f2945 100644 > > > --- a/kernel/bpf/hashtab.c > > > +++ b/kernel/bpf/hashtab.c > > > @@ -278,7 +278,7 @@ find_first_elem: > > > } > > > > > > static struct htab_elem_common *htab_elem_common_alloc(struct bpf_htab *htab, > > > - void *key) > > > + void *key) > > > > better to not introduce the above change. > What is the concern? Sorry. I misread your comment. will fix this unnecessary indentation change.