struct rte_flow_item *pattern;
struct rte_flow_action *actions;
- sprintf(flow_rule, "flow create 0 pattern %s / end", src);
+ sprintf(flow_rule,
+ "flow create 0 pattern %s / end actions drop / end", src);
src = flow_rule;
ret = flow_parse(src, (void *)data, sizeof(data),
&attr, &pattern, &actions);
flow_error.message ? flow_error.message : "");
}
out:
- if (fp)
- free(fp);
+ free(fp);
}
#else /* RTE_HAS_JANSSON */