From: Ivan Malov Date: Tue, 20 Oct 2020 09:13:11 +0000 (+0100) Subject: net/sfc: support flow action flag in MAE backend X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8a771e04db70b9a7be4df2cae4be99d631a14981;p=dpdk.git net/sfc: support flow action flag in MAE backend The action handler will use MAE action FLAG. Signed-off-by: Ivan Malov Signed-off-by: Andrew Rybchenko Reviewed-by: Andy Moreton --- diff --git a/doc/guides/nics/sfc_efx.rst b/doc/guides/nics/sfc_efx.rst index 2d41dcee8d..e185c951b1 100644 --- a/doc/guides/nics/sfc_efx.rst +++ b/doc/guides/nics/sfc_efx.rst @@ -204,6 +204,8 @@ Supported actions (***transfer*** rules): - OF_VLAN_SET_PCP +- FLAG + - PHY_PORT Validating flow rules depends on the firmware variant. diff --git a/drivers/net/sfc/sfc_mae.c b/drivers/net/sfc/sfc_mae.c index 98808ac3f0..af961ceffe 100644 --- a/drivers/net/sfc/sfc_mae.c +++ b/drivers/net/sfc/sfc_mae.c @@ -631,6 +631,11 @@ sfc_mae_rule_parse_action(struct sfc_adapter *sa, bundle->actions_mask); sfc_mae_rule_parse_action_of_set_vlan_pcp(action->conf, bundle); break; + case RTE_FLOW_ACTION_TYPE_FLAG: + SFC_BUILD_SET_OVERFLOW(RTE_FLOW_ACTION_TYPE_FLAG, + bundle->actions_mask); + rc = efx_mae_action_set_populate_flag(spec); + break; case RTE_FLOW_ACTION_TYPE_PHY_PORT: SFC_BUILD_SET_OVERFLOW(RTE_FLOW_ACTION_TYPE_PHY_PORT, bundle->actions_mask);