From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755313AbbCNCIV (ORCPT ); Fri, 13 Mar 2015 22:08:21 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:36589 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752454AbbCNCIT (ORCPT ); Fri, 13 Mar 2015 22:08:19 -0400 Message-ID: <5503981C.6000801@plumgrid.com> Date: Fri, 13 Mar 2015 19:08:28 -0700 From: Alexei Starovoitov User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Daniel Borkmann , "David S. Miller" CC: Thomas Graf , linux-api@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 net-next 1/2] bpf: allow extended BPF programs access skb fields References: <1426273064-4837-1-git-send-email-ast@plumgrid.com> <1426273064-4837-2-git-send-email-ast@plumgrid.com> <550392F7.9040308@iogearbox.net> <550397B0.5070409@iogearbox.net> In-Reply-To: <550397B0.5070409@iogearbox.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/13/15 7:06 PM, Daniel Borkmann wrote: > On 03/14/2015 02:46 AM, Daniel Borkmann wrote: > ... >> Previously, it was much more consistent, which I like better. And only >> because of the simple BUILD_BUG_ON()? :/ > > Alternative is to move all of them into a central place, something like > in twsk_build_assert() or __mld2_query_bugs[]. nope. that defeats the purpose of bug_on. It needs to be next the code it's actually trying to protect.