Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8360154ybi; Thu, 6 Jun 2019 10:55:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzapeqy2zyleWpzxIv5rKu1eTdSmrdrNyYtxZP6fBJWz6sI5bxSZ0o6TZJ7p8eOKuh6rYo X-Received: by 2002:a17:90a:9d81:: with SMTP id k1mr1044022pjp.63.1559843736870; Thu, 06 Jun 2019 10:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559843736; cv=none; d=google.com; s=arc-20160816; b=dNEvCmS8OcTRLBTESkrYYQLm6sswwHNApwAJHMQizs4sp81W1alPnbACLvgWV5Z2/z y/U9xGRSyVRnnnpmyLwnELuL7PzMV7UcPQQPgNfuUz7DtCFW81E0vThqtINzcSf6YWk6 F06cWTrFsHlqegJz+Pr1tiFrD//5KJkAZJvTmI7BM01kwFhoGbNRNEZ4pItCuDQFBGV/ 75936OyF0rE3fIScqb/w6JL4vbBUPl0kGkfaFmeSrxNmPW8qtHZL3ZktYVmzdHOx+vWU LdMV2C95/fJX76oWCJdxIZSM4rT1G0fxsUaB5mrJlx72ENd5UW0u/+Uwic+3ZtgoC1bT op4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+dI5swD1+omNHneKtJgThPzt3z+a6zgCfryKXerEk+I=; b=BP/PYaAFwa9IoOgeITbVrx46bGNt+MVH2hWm9t39br7n/UGLXC378/pgIXZgf7FXqt 0dlyr2Li5aYaKU7J1C0yIoy95lORs9rkndqJNHeWL8jbFJ7SR3fv1VV/mBVehOna1i9z OGh8BCMSn0KJ7eFzeXICZfT4u/03uKom6WPFJNk/Rs/M1pvrjOAtovM0r2V7epojxJp8 QdF8u9p3S6x6Tl940o7Tea+/mbslsMHay4hFfaohxUuND2IaGnLxFJ5vQiW08GiX6G0I IaQwTSkvoMkoeh3H2gbcag03I5Aa4DwvTyvMe9u2ewf3EwaMGsEloJvgxzcYD3UktPtS 5P3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brauner.io header.s=google header.b=KpUcO0Cn; 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 h4si2343788plb.206.2019.06.06.10.55.20; Thu, 06 Jun 2019 10:55:36 -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=@brauner.io header.s=google header.b=KpUcO0Cn; 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 S1729280AbfFFPTv (ORCPT + 99 others); Thu, 6 Jun 2019 11:19:51 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:46765 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728876AbfFFPTv (ORCPT ); Thu, 6 Jun 2019 11:19:51 -0400 Received: by mail-pf1-f193.google.com with SMTP id 81so455735pfy.13 for ; Thu, 06 Jun 2019 08:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brauner.io; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=+dI5swD1+omNHneKtJgThPzt3z+a6zgCfryKXerEk+I=; b=KpUcO0CnhBIu8G6mnGGrqCHe1Kkx45ZcW+oH2HZ2Kz7r+idRSFJWy0DVbMKv3k/uE/ M/nUZ0pa9SZekl54rp6x3Vwe/QiB8ICNkwPBthR6RzgpCENAMQ0CMK5v9H1NIKzq+olP 5EoyF3PiLb/LovgHPn8jgagX52/cJeJ6x4VhmFCbZD/1E1kCD/j6y9NP1SgkRn7jDKBX TK7bIdcWa3UO/PLu8KRVgxtvdv0xe6UzdcZAcp8XWK6uKNBvP5XB89OZC2ssq/cjozdJ MthlBYbsYBUoAD1Xr+9AYhFzp4WY04PuKZ3n1u8UdrzfLx0rRYn5pGDQVhNIHD2mHIES RqjA== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=+dI5swD1+omNHneKtJgThPzt3z+a6zgCfryKXerEk+I=; b=ekNW515/CMb9Iu5LT+eUk7hAxxX0tB+aQXjPU0W9hdj+qXlCYp8P8M3C5E5VrZiVCN S5+yslc0+Ge9Ff8Rg+/PKx9cnf17NolWpZjvTeX9U1ROb0/Cuu2KXiyZFU9qKU1O5XGH 0Bxmdb7a1LlMv+jLEc535zOCTeaRnXJkX6U2tmW4qfEr3MbZfzaya6ghH/WBu16xjHp3 0UexbzNNgI4tm+GwD4+Y3XCdUHzXrv5CdDpshonJxv/Qh87Fn/j71mZBeU+8/YoXBEyF cxCmAhgDKIBh+u1hzi/zDzxtGTl8HNA5Ufn9nkB7a1Z1XFQgfA6Yx71myxq6SRQvor97 v80g== X-Gm-Message-State: APjAAAV81WlSZ/jk33SrafMoAXhOtFXqSlSliAOgAOZmXLGKRpZh8p7u SXDqeAf2+ifEps/vw56g1U/ujw== X-Received: by 2002:a62:1483:: with SMTP id 125mr53844216pfu.137.1559834390511; Thu, 06 Jun 2019 08:19:50 -0700 (PDT) Received: from brauner.io ([172.56.30.175]) by smtp.gmail.com with ESMTPSA id i5sm4103104pfk.49.2019.06.06.08.19.42 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 06 Jun 2019 08:19:49 -0700 (PDT) Date: Thu, 6 Jun 2019 17:19:39 +0200 From: Christian Brauner To: Stephen Hemminger 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: <20190606151937.mdpalfk7urvv74ub@brauner.io> References: <20190606114142.15972-1-christian@brauner.io> <20190606114142.15972-2-christian@brauner.io> <20190606081440.61ea1c62@hermes.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190606081440.61ea1c62@hermes.lan> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 06, 2019 at 08:14:40AM -0700, Stephen Hemminger wrote: > 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. I think we had discussed something like this but the problem why we can't do this stems from how the sysctl-table stuff is implemented. I distinctly remember that it couldn't be done with a flag due to that. Christian