net/sfc: support DROP action in flow API
authorRoman Zhukov <roman.zhukov@oktetlabs.ru>
Tue, 27 Feb 2018 13:11:19 +0000 (13:11 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Mar 2018 12:08:43 +0000 (14:08 +0200)
Signed-off-by: Roman Zhukov <roman.zhukov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
doc/guides/nics/sfc_efx.rst
doc/guides/rel_notes/release_18_05.rst
drivers/net/sfc/sfc_flow.c

index f41ccdb..36e98d3 100644 (file)
@@ -183,6 +183,8 @@ Supported actions:
 
 - RSS
 
+- DROP
+
 Validating flow rules depends on the firmware variant.
 
 Ethernet destinaton individual/group match
index a2f12d4..f2525bb 100644 (file)
@@ -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
index 8900ff4..fe4c0b0 100644 (file)
@@ -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,