DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/ice: support drop action for DCF switch
@ 2020-09-28  2:31 Simei Su
  2020-10-14  8:03 ` Zhang, Qi Z
  0 siblings, 1 reply; 2+ messages in thread
From: Simei Su @ 2020-09-28  2:31 UTC (permalink / raw)
  To: qi.z.zhang; +Cc: dev, haiyue.wang, qiming.yang, Simei Su

This patch adds drop action in DCF switch filter.

Signed-off-by: Simei Su <simei.su@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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] net/ice: support drop action for DCF switch
  2020-09-28  2:31 [dpdk-dev] [PATCH] net/ice: support drop action for DCF switch Simei Su
@ 2020-10-14  8:03 ` Zhang, Qi Z
  0 siblings, 0 replies; 2+ messages in thread
From: Zhang, Qi Z @ 2020-10-14  8:03 UTC (permalink / raw)
  To: Su, Simei; +Cc: dev, Wang, Haiyue, Yang, Qiming



> -----Original Message-----
> From: Su, Simei <simei.su@intel.com>
> Sent: Monday, September 28, 2020 10:32 AM
> To: Zhang, Qi Z <qi.z.zhang@intel.com>
> Cc: dev@dpdk.org; Wang, Haiyue <haiyue.wang@intel.com>; Yang, Qiming
> <qiming.yang@intel.com>; Su, Simei <simei.su@intel.com>
> Subject: [PATCH] net/ice: support drop action for DCF switch
> 
> 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>

Applied to dpdk-next-net-intel.

Thanks
Qi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-14  8:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-28  2:31 [dpdk-dev] [PATCH] net/ice: support drop action for DCF switch Simei Su
2020-10-14  8:03 ` Zhang, Qi Z

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git