- return roc_npc_flow_parse(npc, &in_attr, in_pattern, in_actions, &flow);
+ rc = roc_npc_flow_parse(npc, &in_attr, in_pattern, in_actions, &flow);
+
+ if (rc) {
+ rte_flow_error_set(error, 0, rc, NULL,
+ "Flow validation failed");
+ return rc;
+ }
+ return 0;