net/enic: fix flow drop action

Drop is a fate-deciding action, so mark it as FATE. It was missing in
a previous commit.

Fixes: cc17feb904 ("ethdev: alter behavior of flow API actions")

Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
This commit is contained in:
Hyong Youb Kim 2018-05-10 01:51:13 -07:00 committed by Ferruh Yigit
parent acca1807e7
commit 9713ece25c

View File

@ -1062,6 +1062,9 @@ enic_copy_action_v2(const struct rte_flow_action actions[],
break;
}
case RTE_FLOW_ACTION_TYPE_DROP: {
if (overlap & FATE)
return ENOTSUP;
overlap |= FATE;
enic_action->flags |= FILTER_ACTION_DROP_FLAG;
break;
}