From: Roman Zhukov Date: Tue, 27 Feb 2018 13:11:19 +0000 (+0000) Subject: net/sfc: support DROP action in flow API X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=58a1e5a17f46253e83cc447dc869793a45796476;p=dpdk.git net/sfc: support DROP action in flow API Signed-off-by: Roman Zhukov Signed-off-by: Andrew Rybchenko --- diff --git a/doc/guides/nics/sfc_efx.rst b/doc/guides/nics/sfc_efx.rst index f41ccdb835..36e98d384d 100644 --- a/doc/guides/nics/sfc_efx.rst +++ b/doc/guides/nics/sfc_efx.rst @@ -183,6 +183,8 @@ Supported actions: - RSS +- DROP + Validating flow rules depends on the firmware variant. Ethernet destinaton individual/group match diff --git a/doc/guides/rel_notes/release_18_05.rst b/doc/guides/rel_notes/release_18_05.rst index a2f12d4d3d..f2525bbd94 100644 --- a/doc/guides/rel_notes/release_18_05.rst +++ b/doc/guides/rel_notes/release_18_05.rst @@ -50,6 +50,7 @@ New Features Updated the sfc_efx driver including the following changes: * Added support for NVGRE, VXLAN and GENEVE filters in flow API. + * Added support for DROP action in flow API. API Changes diff --git a/drivers/net/sfc/sfc_flow.c b/drivers/net/sfc/sfc_flow.c index 8900ff471d..fe4c0b0c50 100644 --- a/drivers/net/sfc/sfc_flow.c +++ b/drivers/net/sfc/sfc_flow.c @@ -1497,6 +1497,13 @@ sfc_flow_parse_actions(struct sfc_adapter *sa, break; #endif /* EFSYS_OPT_RX_SCALE */ + case RTE_FLOW_ACTION_TYPE_DROP: + flow->spec.template.efs_dmaq_id = + EFX_FILTER_SPEC_RX_DMAQ_ID_DROP; + + is_specified = B_TRUE; + break; + default: rte_flow_error_set(error, ENOTSUP, RTE_FLOW_ERROR_TYPE_ACTION, actions,