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 D0E0FEE4993 for ; Mon, 21 Aug 2023 14:13:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232211AbjHUONL (ORCPT ); Mon, 21 Aug 2023 10:13:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235695AbjHUONL (ORCPT ); Mon, 21 Aug 2023 10:13:11 -0400 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:237:300::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB30BE8 for ; Mon, 21 Aug 2023 07:13:01 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1qY5eN-0003WE-Fd; Mon, 21 Aug 2023 16:12:59 +0200 From: Florian Westphal To: Cc: Florian Westphal Subject: [PATCH nft] parser: permit gc-interval in map declarations Date: Mon, 21 Aug 2023 16:12:52 +0200 Message-ID: <20230821141254.32514-1-fw@strlen.de> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Maps support timeouts, so allow to set the gc interval as well. Fixes: 949cc39eb93f ("parser: support of maps with timeout") Signed-off-by: Florian Westphal --- src/parser_bison.y | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/parser_bison.y b/src/parser_bison.y index 5637829332ce..7b8eac9577ef 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -2237,6 +2237,11 @@ map_block : /* empty */ { $$ = $-1; } $1->timeout = $3; $$ = $1; } + | map_block GC_INTERVAL time_spec stmt_separator + { + $1->gc_int = $3; + $$ = $1; + } | map_block TYPE data_type_expr COLON map_block_data_interval data_type_expr stmt_separator close_scope_type -- 2.41.0