net/sfc: support flow action OF pop VLAN in MAE backend
authorIvan Malov <ivan.malov@oktetlabs.ru>
Tue, 20 Oct 2020 09:13:06 +0000 (10:13 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:24:25 +0000 (23:24 +0100)
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 <ivan.malov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
doc/guides/nics/sfc_efx.rst
drivers/net/sfc/sfc_mae.c

index 18b9812..a7061fb 100644 (file)
@@ -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.
index ea15cca..a86a22a 100644 (file)
@@ -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;