common/sfc_efx/base: support adding encap action to a set
[dpdk.git] / drivers / common / sfc_efx / base / efx_impl.h
index aa87801..c76ed9b 100644 (file)
@@ -1729,6 +1729,7 @@ typedef enum efx_mae_action_e {
        /* These actions are strictly ordered. */
        EFX_MAE_ACTION_VLAN_POP,
        EFX_MAE_ACTION_VLAN_PUSH,
+       EFX_MAE_ACTION_ENCAP,
 
        /*
         * These actions are not strictly ordered and can
@@ -1756,6 +1757,10 @@ typedef struct efx_mae_action_vlan_push_s {
        uint16_t                        emavp_tci_be;
 } efx_mae_action_vlan_push_t;
 
+typedef struct efx_mae_actions_rsrc_s {
+       efx_mae_eh_id_t                 emar_eh_id;
+} efx_mae_actions_rsrc_t;
+
 struct efx_mae_actions_s {
        /* Bitmap of actions in spec, indexed by action type */
        uint32_t                        ema_actions;
@@ -1766,6 +1771,13 @@ struct efx_mae_actions_s {
            EFX_MAE_VLAN_PUSH_MAX_NTAGS];
        uint32_t                        ema_mark_value;
        efx_mport_sel_t                 ema_deliver_mport;
+
+       /*
+        * Always keep this at the end of the struct since
+        * efx_mae_action_set_specs_equal() relies on that
+        * to make sure that resource IDs are not compared.
+        */
+       efx_mae_actions_rsrc_t          ema_rsrc;
 };
 
 #endif /* EFSYS_OPT_MAE */