actions: Bundle action parsing parameters into a structure.
[cascardo/ovs.git] / ovn / controller / lflow.c
index 91ad5db..32491cf 100644 (file)
@@ -305,10 +305,17 @@ lflow_run(struct controller_ctx *ctx, struct hmap *flow_table,
         char *error;
 
         ofpbuf_use_stub(&ofpacts, ofpacts_stub, sizeof ofpacts_stub);
-        error = actions_parse_string(lflow->actions, &symtab, &ldp->ports,
-                                     ct_zones, first_ptable, LOG_PIPELINE_LEN,
-                                     lflow->table_id, output_ptable,
-                                     &ofpacts, &prereqs);
+        struct action_params ap = {
+            .symtab = &symtab,
+            .ports = &ldp->ports,
+            .ct_zones = ct_zones,
+
+            .n_tables = LOG_PIPELINE_LEN,
+            .first_ptable = first_ptable,
+            .cur_ltable = lflow->table_id,
+            .output_ptable = output_ptable,
+        };
+        error = actions_parse_string(lflow->actions, &ap, &ofpacts, &prereqs);
         if (error) {
             static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 1);
             VLOG_WARN_RL(&rl, "error parsing actions \"%s\": %s",