@@ -26,7 +26,7 @@ Post-v2.12.0
releases.
* OVS validated with DPDK 18.11.5, due to the inclusion of a fix for
CVE-2019-14818, this DPDK version is strongly recommended to be used.
- * Add hardware offload support for output actions (experimental).
+ * Add hardware offload support for output and drop actions (experimental).
v2.12.0 - 03 Sep 2019
---------------------
@@ -296,6 +296,8 @@ ds_put_flow_action(struct ds *s, const struct rte_flow_action *actions)
} else {
ds_put_cstr(s, " Port-id = null\n");
}
+ } else if (actions->type == RTE_FLOW_ACTION_TYPE_DROP) {
+ ds_put_cstr(s, "rte flow drop action\n");
} else {
ds_put_format(s, "unknown rte flow action (%d)\n", actions->type);
}
@@ -630,9 +632,7 @@ netdev_dpdk_flow_actions_add(struct flow_actions *actions,
}
if (nl_actions_len == 0) {
- VLOG_DBG_RL(&error_rl,
- "Unsupported action type drop");
- return -1;
+ add_flow_action(actions, RTE_FLOW_ACTION_TYPE_DROP, NULL);
}
add_flow_action(actions, RTE_FLOW_ACTION_TYPE_END, NULL);