net/ice: support drop action for DCF switch
authorSimei Su <simei.su@intel.com>
Mon, 28 Sep 2020 02:31:56 +0000 (10:31 +0800)
committerFerruh 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

index 4dfeeef..8cba6eb 100644 (file)
@@ -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,