From 2db5f5bcea29e49a1a97a2fe3aa2bbb150d8a17a Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Mon, 21 Aug 2023 16:12:52 +0200 Subject: [PATCH nft,v1.0.6 34/41] parser: permit gc-interval in map declarations commit 61eab46ee62a72629fa86c1929e73a2bfa95bc02 upstream. 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 37dc8ac4c1a6..b6ad51adb62d 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -2077,6 +2077,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 data_type_expr stmt_separator close_scope_type -- 2.30.2