git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acca180
)
net/enic: fix flow drop action
author
Hyong Youb Kim
<hyonkim@cisco.com>
Thu, 10 May 2018 08:51:13 +0000
(
01:51
-0700)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Mon, 14 May 2018 21:31:52 +0000
(22:31 +0100)
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")
Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
drivers/net/enic/enic_flow.c
patch
|
blob
|
history
diff --git
a/drivers/net/enic/enic_flow.c
b/drivers/net/enic/enic_flow.c
index
525f3dd
..
0cf04ae
100644
(file)
--- a/
drivers/net/enic/enic_flow.c
+++ b/
drivers/net/enic/enic_flow.c
@@
-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;
}