This patch adds drop action in DCF switch filter. Signed-off-by: Simei Su <simei...@intel.com> --- drivers/net/ice/ice_switch_filter.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c index 4dfeeef..8cba6eb 100644 --- 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, -- 2.9.5