From mboxrd@z Thu Jan 1 00:00:00 1970 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 5D45EEB64D9 for ; Wed, 12 Jul 2023 14:01:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232180AbjGLOB3 (ORCPT ); Wed, 12 Jul 2023 10:01:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231145AbjGLOB0 (ORCPT ); Wed, 12 Jul 2023 10:01:26 -0400 Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1E6BC1BE8 for ; Wed, 12 Jul 2023 07:01:08 -0700 (PDT) Date: Wed, 12 Jul 2023 16:01:04 +0200 From: Pablo Neira Ayuso To: Igor Raits Cc: netfilter-devel@vger.kernel.org, fw@strlen.de, phil@nwl.cc Subject: Re: [PATCH iptables] nft-bridge: pass context structure to ops->add() to improve anonymous set support Message-ID: References: <20230712095912.140792-1-pablo@netfilter.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org On Wed, Jul 12, 2023 at 01:05:10PM +0200, Igor Raits wrote: > Hi Pablo, > > Thanks for the patch! > > On Wed, Jul 12, 2023 at 11:59 AM Pablo Neira Ayuso wrote: > > > > Add context structure to improve bridge among support which creates an > > anonymous set. This context structure specifies the command and it > > allows to optionally store a anonymous set. > > > > Use this context to generate native bytecode only if this is an > > add/insert/replace command. > > > > This fixes a dangling anonymous set that is created on rule removal. > > > > Fixes: 26753888720d ("nft: bridge: Rudimental among extension support") > > Signed-off-by: Pablo Neira Ayuso > > Reported-and-tested-by: Igor Raits I have just pushed it out, thanks.