From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jakub Kicinski Subject: Re: [PATCH 11/17] cls_bpf: Convert to use idr_alloc_u32 Date: Tue, 28 Nov 2017 17:08:40 -0800 Message-ID: <20171128170817.1c23d420@cakuba.netronome.com> References: <20171128213312.28983-1-willy@infradead.org> <20171128213312.28983-12-willy@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Matthew Wilcox , Chris Mi , Jiri Pirko , "David S . Miller" , Cong Wang , Jamal Hadi Salim , Daniel Borkmann , Eric Biggers , Lai Jiangshan , Tejun Heo , Rehas Sachdeva , netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: Matthew Wilcox Return-path: In-Reply-To: <20171128213312.28983-12-willy@infradead.org> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Tue, 28 Nov 2017 13:33:06 -0800, Matthew Wilcox wrote: > + ret = idr_alloc_u32(&head->handle_idr, prog, &handle, > + INT_MAX, GFP_KERNEL); > + } else if (!oldprog) { > + ret = idr_alloc_u32(&head->handle_idr, prog, &handle, > + handle, GFP_KERNEL); nit: in many places you seem to not align the second line with opening parenthesis. Is that intentional? FWIW there may be a small merge conflict with net on cls_bpf in patch 5, some of the code has been removed.