summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/parser_bison.y11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y
index abe11781..cc477e65 100644
--- a/src/parser_bison.y
+++ b/src/parser_bison.y
@@ -1996,7 +1996,6 @@ flowtable_block_alloc : /* empty */
flowtable_block : /* empty */ { $$ = $<flowtable>-1; }
| flowtable_block common_block
| flowtable_block stmt_separator
- | flowtable_block ft_flags_spec stmt_separator
| flowtable_block HOOK STRING prio_spec stmt_separator
{
$$->hook.loc = @3;
@@ -2019,6 +2018,10 @@ flowtable_block : /* empty */ { $$ = $<flowtable>-1; }
{
$$->flags |= NFT_FLOWTABLE_COUNTER;
}
+ | flowtable_block FLAGS OFFLOAD stmt_separator
+ {
+ $$->flags |= FLOWTABLE_F_HW_OFFLOAD;
+ }
;
flowtable_expr : '{' flowtable_list_expr '}'
@@ -2379,12 +2382,6 @@ flags_spec : FLAGS OFFLOAD
}
;
-ft_flags_spec : FLAGS OFFLOAD
- {
- $<flowtable>0->flags |= FLOWTABLE_F_HW_OFFLOAD;
- }
- ;
-
policy_spec : POLICY policy_expr
{
if ($<chain>0->policy) {