Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8373260ybi; Thu, 6 Jun 2019 11:08:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwj5xN/TtooRMKQMt27nYJeWFh19vbeeCyQ/+6GQxVWWqNqzKz5fn33B5kbKjaAUOQoc+Ez X-Received: by 2002:a17:902:1e2:: with SMTP id b89mr30175788plb.7.1559844521474; Thu, 06 Jun 2019 11:08:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559844521; cv=none; d=google.com; s=arc-20160816; b=A+P/2fToCTfRnEa1UqgJbzjjKzj3TFl4Kwjijy+yphpd9Y3nxXlRjPWpt7f1OULNWo QWWTr9GHAaWjIddeEep2HFEPTHoqgaSRjBBOGrJcWmjRD7yqvZMguZmnB+impfTT9hrV E6jI/T4roaggo7exphWjW1m08T5hiH1Gz9bnm2Mjm0IG5pSeTnjWBBWILTQnuVrh6IgB NPxjijMXUb8aHkKcvsNNGFRrOAzLDLZT1Kmo/008XwkqcQX5VMxtri1TmtvWWJYFPnq8 BFtswipBouNW37HbQ+WpJAB5B+as1wQKqqGAF9+zJKOpuwCn7UWcV8Taqrhqm+2btE2E FzKw== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=TzDoPcS3HLhIwNYev308ripJfQS3Yq68GyHRxr8IupE=; b=FgtBAimUZdj0YnSBC12nlNBxR4N9y302oc9ILjBPds2f4MYJm/uFMIvclLXS8PQTPw 2HWObmRdqjorr62dB4Bz59xMPaAIgQctGmc03tiFgLzptH8IlCPB0D4Wbjon8zKk9wI3 uPiikEHuwGx3GUCLq49nf2WTx6FAFRonu7GSzJMdXKkuWfBRh9O9a7yoiPEqetWzfXFb t+qY2hhFEQj9eqHbZc0UoV6LaUsrZwmxkxeJIvYFlU50CGiNxHifLofSQ9VFAlg0KAWi XDGrd2nwyNb0+7ZREc9JM6U4GQk7UsE6ucbVxgbnz7Ahue2yQ9Abao+CVhBkGenqFYge qbxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=Z7oQGppd; 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 d2si2442305pld.90.2019.06.06.11.08.24; Thu, 06 Jun 2019 11:08:41 -0700 (PDT) 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; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=Z7oQGppd; 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 S1729184AbfFFPOo (ORCPT + 99 others); Thu, 6 Jun 2019 11:14:44 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:36395 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729114AbfFFPOo (ORCPT ); Thu, 6 Jun 2019 11:14:44 -0400 Received: by mail-pf1-f193.google.com with SMTP id u22so1703539pfm.3 for ; Thu, 06 Jun 2019 08:14:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TzDoPcS3HLhIwNYev308ripJfQS3Yq68GyHRxr8IupE=; b=Z7oQGppdBcUoY2AIRTVVIm6fveADrwDEDjYkeWtG92nm3I34Vf+4rBjD0+tShk2JZY zMOuPZQJD4xTG2QlCbolIZagYyyUVzbaUYCILkZhbadB9GaVO1i752zqn/Yhf+G+frL1 +uI2QigmmrKAyivUqjHkOYwbC2ZyJsQlKcfZzGUP20e4DlqZfc6xvAjuevvKtSlC5g2n EfOfV81YjH0QtUEr4mPeR6xxqpD/XVCgAUyorl6cUbbwVjJ2zDalNVvNCUY9//8WYi/5 5RyIiobxFXceSBlfdzlRPRIyQGO8moX1+WSst6+0T32di8yOUdt23bmvA0Z1GhqrOKVM yuzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TzDoPcS3HLhIwNYev308ripJfQS3Yq68GyHRxr8IupE=; b=g7BvdzzWQJRyFfqCY1ohJHATlBcoaNDfS+LAVtogry8iu94Rd7oTQeqRFqQMrtlO9Z +UNQfe4JgcOHExrKF8ASQBtgS0NSBkMilgilqLA5v5J/yU/y+nl/LkWSBzs4B+FpHOd3 G7rgJMFQxfwWcd8Qh7IOZ22aphGMfcA4m46IloX+MWV/999foGGhNJR5lktZ7TMCmSyS HsbJyMtMuEb/2dSP+fgGVgKhWtDFdIbH2HSKCnkQ+6odSSTeRMMwJmecbJkEQLlVUm6e 9RsubdnNdw5y/SH6uiJT9jE2HbObvO4tgMgAuKuDPAGFv41nXrkNBsMHpMe4qX+pSyE5 ySuw== X-Gm-Message-State: APjAAAWYSvunvm1dzu+is883uq/KCqATsX1zC2Qk1OUYozh6cj1rrOxy 1YzPogVXVXS9HeO5HgczF5rYCg== X-Received: by 2002:a63:1c59:: with SMTP id c25mr3749595pgm.395.1559834083339; Thu, 06 Jun 2019 08:14:43 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id e184sm2407652pfa.169.2019.06.06.08.14.42 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 06 Jun 2019 08:14:42 -0700 (PDT) Date: Thu, 6 Jun 2019 08:14:40 -0700 From: Stephen Hemminger To: Christian Brauner Cc: davem@davemloft.net, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, bridge@lists.linux-foundation.org, tyhicks@canonical.com, pablo@netfilter.org, kadlec@blackhole.kfki.hu, fw@strlen.de, roopa@cumulusnetworks.com, nikolay@cumulusnetworks.com, linux-kernel@vger.kernel.org, richardrose@google.com, vapier@chromium.org, bhthompson@google.com, smbarber@chromium.org, joelhockey@chromium.org, ueberall@themenzentrisch.de Subject: Re: [PATCH RESEND net-next 1/2] br_netfilter: add struct netns_brnf Message-ID: <20190606081440.61ea1c62@hermes.lan> In-Reply-To: <20190606114142.15972-2-christian@brauner.io> References: <20190606114142.15972-1-christian@brauner.io> <20190606114142.15972-2-christian@brauner.io> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 6 Jun 2019 13:41:41 +0200 Christian Brauner wrote: > +struct netns_brnf { > +#ifdef CONFIG_SYSCTL > + struct ctl_table_header *ctl_hdr; > +#endif > + > + /* default value is 1 */ > + int call_iptables; > + int call_ip6tables; > + int call_arptables; > + > + /* default value is 0 */ > + int filter_vlan_tagged; > + int filter_pppoe_tagged; > + int pass_vlan_indev; > +}; Do you really need to waste four bytes for each flag value. If you use a u8 that would work just as well. Bool would also work but the kernel developers frown on bool in structures.