From fbd8947cdf06d9c053b574d588dc81c70c898edb Mon Sep 17 00:00:00 2001 From: Simei Su Date: Mon, 28 Sep 2020 10:31:56 +0800 Subject: [PATCH] net/ice: support drop action for DCF switch This patch adds drop action in DCF switch filter. Signed-off-by: Simei Su Acked-by: Qi Zhang --- 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 4dfeeef50f..8cba6eb7b1 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.20.1