Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6CAF6C61DA4 for ; Thu, 23 Feb 2023 09:06:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232954AbjBWJG3 (ORCPT ); Thu, 23 Feb 2023 04:06:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbjBWJG2 (ORCPT ); Thu, 23 Feb 2023 04:06:28 -0500 Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1FE041EFF2 for ; Thu, 23 Feb 2023 01:06:28 -0800 (PST) Date: Thu, 23 Feb 2023 10:06:25 +0100 From: Pablo Neira Ayuso To: Florian Westphal Cc: Sriram Yagnaraman , netfilter-devel@vger.kernel.org Subject: Re: [RFC nf-next PATCH] netfilter: nft: introduce broute chain type Message-ID: References: <20230222110337.15951-1-sriram.yagnaraman@est.tech> <20230222113731.GE12484@breakpoint.cc> <20230222114901.GF12484@breakpoint.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230222114901.GF12484@breakpoint.cc> Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org On Wed, Feb 22, 2023 at 12:49:01PM +0100, Florian Westphal wrote: > Florian Westphal wrote: > > The br_netfilter_broute flag is required, but I don't like a new chain > > type for this, nor keeping the drop/accept override. > > > > I'd add a new "broute" expression that sets the flag in the skb cb > > and sets NF_ACCEPT, useable in bridge family -- I think that this would > > be much more readable. > > Or, even simpler, extend nft_meta_bridge.c and extend nft userspace to > support: > > nft ... meta broute set 1 accept > > We also support nftrace this way, so there is precedence for it. Sriram, this would be better than the new chain. I prefer Florian's proposal.