From: Ivan Malov Date: Tue, 20 Oct 2020 09:13:06 +0000 (+0100) Subject: net/sfc: support flow action OF pop VLAN in MAE backend X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9346bfa18b88d62879948a521b21f52e32f813bb;p=dpdk.git net/sfc: support flow action OF pop VLAN in MAE backend This action is supported only for rules which have transfer attribute, and can be requested once or twice per a rule. 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 18b981273c..a7061fb7d7 100644 --- a/doc/guides/nics/sfc_efx.rst +++ b/doc/guides/nics/sfc_efx.rst @@ -196,6 +196,8 @@ Supported pattern items (***transfer*** rules): Supported actions (***transfer*** rules): +- OF_POP_VLAN + - 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 ea15ccaedb..a86a22ad8f 100644 --- a/drivers/net/sfc/sfc_mae.c +++ b/drivers/net/sfc/sfc_mae.c @@ -475,6 +475,9 @@ sfc_mae_rule_parse_action(struct sfc_adapter *sa, int rc; switch (action->type) { + case RTE_FLOW_ACTION_TYPE_OF_POP_VLAN: + rc = efx_mae_action_set_populate_vlan_pop(spec); + break; case RTE_FLOW_ACTION_TYPE_PHY_PORT: rc = sfc_mae_rule_parse_action_phy_port(sa, action->conf, spec); break;