From 9346bfa18b88d62879948a521b21f52e32f813bb Mon Sep 17 00:00:00 2001 From: Ivan Malov Date: Tue, 20 Oct 2020 10:13:06 +0100 Subject: [PATCH] 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 --- doc/guides/nics/sfc_efx.rst | 2 ++ drivers/net/sfc/sfc_mae.c | 3 +++ 2 files changed, 5 insertions(+) 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; -- 2.20.1