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:
parent
9a036509e6
commit
58a1e5a17f
@ -183,6 +183,8 @@ Supported actions:
|
||||
|
||||
- RSS
|
||||
|
||||
- DROP
|
||||
|
||||
Validating flow rules depends on the firmware variant.
|
||||
|
||||
Ethernet destinaton individual/group match
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user