net/sfc: support DROP action in flow API

Signed-off-by: Roman Zhukov <roman.zhukov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
This commit is contained in:
Roman Zhukov 2018-02-27 13:11:19 +00:00 committed by Ferruh Yigit
parent 9a036509e6
commit 58a1e5a17f
3 changed files with 10 additions and 0 deletions

View File

@ -183,6 +183,8 @@ Supported actions:
- RSS
- DROP
Validating flow rules depends on the firmware variant.
Ethernet destinaton individual/group match

View 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

View 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,