From: Simei Su Date: Mon, 28 Sep 2020 02:31:56 +0000 (+0800) Subject: net/ice: support drop action for DCF switch X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=fbd8947cdf06d9c053b574d588dc81c70c898edb;p=dpdk.git 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 --- 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,