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 A9B86C433F5 for ; Mon, 7 Feb 2022 14:18:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235628AbiBGOR1 (ORCPT ); Mon, 7 Feb 2022 09:17:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379133AbiBGOEU (ORCPT ); Mon, 7 Feb 2022 09:04:20 -0500 Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1C93AC043181 for ; Mon, 7 Feb 2022 06:04:20 -0800 (PST) Received: from netfilter.org (unknown [78.30.32.163]) by mail.netfilter.org (Postfix) with ESMTPSA id F3BF66018C; Mon, 7 Feb 2022 15:04:15 +0100 (CET) Date: Mon, 7 Feb 2022 15:04:16 +0100 From: Pablo Neira Ayuso To: Florian Westphal Cc: netfilter-devel@vger.kernel.org Subject: Re: [PATCH nft 1/3] json: add flow statement json export + parser Message-ID: References: <20220207132816.21129-1-fw@strlen.de> <20220207132816.21129-2-fw@strlen.de> <20220207132915.GB25000@breakpoint.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220207132915.GB25000@breakpoint.cc> Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org On Mon, Feb 07, 2022 at 02:29:15PM +0100, Florian Westphal wrote: > Florian Westphal wrote: > > flow statement has no export, its shown as: > > ".. }, "flow add @ft" ] } }" > > > > With this patch: > > > > ".. }, {"flow": {"op": "add", "flowtable": "@ft"}}]}}" > > This is based on the 'set' statement. If you prefer the @ to > be removed let me know. Then, it is consistent with the existing syntax. So either we consider deprecating the @ on the 'set' statement (while retaining backward compatibility) or flowtable also includes it as in your patch.