Skip to contentSkip to conversation

net/ice: support drop action for DCF switch

PATCH Applied Simei Su 2 participants 2 messages Sep 28, 2020 – Oct 14, 2020 Network drivers

lore
Share & tools
lore

Simei Su

author
#0 lore raw

PATCH 1/1 net/ice: support drop action for DCF switch

This patch adds drop action in DCF switch filter.

---
 drivers/net/ice/ice_switch_filter.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/net/ice/ice_switch_filter.c +5 -0
index 4dfeeef..8cba6eb 100644
@@ -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,
Signature · 1 line
2.9.5
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: Su, Simei <[email protected]>
Sent: Monday, September 28, 2020 10:32 AM
To: Zhang, Qi Z <[email protected]>
Cc: [email protected]; Wang, Haiyue <[email protected]>; Yang, Qiming <[email protected]>; Su, Simei <[email protected]>
Subject: [PATCH] net/ice: support drop action for DCF switch

Quoted 3 lines

This patch adds drop action in DCF switch filter.

Applied to dpdk-next-net-intel.

Thanks
Qi