Skip to contentSkip to conversation

net/enic: fix flow drop action

PATCH Applied Hyong Youb Kim 2 participants 2 messages May 10, 2018 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 cc17feb90413 ("ethdev: alter behavior of flow API actions")
---
 drivers/net/enic/enic_flow.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/enic/enic_flow.c +3 -0
index 525f3dd7c..0cf04aefd 100644
@@ -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;
 		}
Signature · 1 line
2.16.2
Applied
#1 lore raw
Quoted 6 lines · Hyong Youb Kim

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

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

Applied to dpdk-next-net/master, thanks.