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:
c316890
)
net/ice: support drop action for DCF switch
author
Simei Su
<simei.su@intel.com>
Mon, 28 Sep 2020 02:31:56 +0000
(10:31 +0800)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Fri, 16 Oct 2020 17:48:18 +0000
(19:48 +0200)
This patch adds drop action in DCF switch filter.
Signed-off-by: Simei Su <simei.su@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/ice/ice_switch_filter.c
patch
|
blob
|
history
diff --git
a/drivers/net/ice/ice_switch_filter.c
b/drivers/net/ice/ice_switch_filter.c
index
4dfeeef
..
8cba6eb
100644
(file)
--- a/
drivers/net/ice/ice_switch_filter.c
+++ b/
drivers/net/ice/ice_switch_filter.c
@@
-1460,6
+1460,11
@@
ice_switch_parse_dcf_action(struct ice_dcf_adapter *ad,
else
rule_info->sw_act.vsi_handle = act_vf->id;
break;
+
+ case RTE_FLOW_ACTION_TYPE_DROP:
+ rule_info->sw_act.fltr_act = ICE_DROP_PACKET;
+ break;
+
default:
rte_flow_error_set(error,
EINVAL, RTE_FLOW_ERROR_TYPE_ACTION,