@@ -391,6 +391,7 @@ Supported protocols for hardware offload matches are:
Supported actions for hardware offload are:
- Output.
+- Drop.
Further Reading
---------------
@@ -26,7 +26,7 @@ Post-v2.12.0
* DPDK ring ports (dpdkr) are deprecated and will be removed in next
releases.
* Add support for DPDK 19.11.
- * Add hardware offload support for output actions (experimental).
+ * Add hardware offload support for output and drop actions (experimental).
v2.12.0 - 03 Sep 2019
---------------------
@@ -365,6 +365,8 @@ dump_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);
}
@@ -816,9 +818,7 @@ parse_flow_actions(struct netdev *netdev,
}
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);