net/ixgbe: restore L2 tunnel filter
[dpdk.git] / drivers / net / bnxt / hsi_struct_def_dpdk.h
index bec77e4..f024837 100644 (file)
@@ -5100,372 +5100,306 @@ struct hwrm_ring_grp_free_output {
  * other things which then allows the ASIC to direct the  incoming traffic
  * to an appropriate VNIC or Rx ring.
  */
-
 /* Input (96 bytes) */
 struct hwrm_cfa_l2_filter_alloc_input {
-       /*
-        * This value indicates what type of request this is. The format for the
-        * rest of the command is determined by this field.
-        */
        uint16_t req_type;
-
        /*
-        * This value indicates the what completion ring the request will be
-        * optionally completed on. If the value is -1, then no CR completion
-        * will be generated. Any other value must be a valid CR ring_id value
-        * for this function.
+        * This value indicates what type of request this is. The format
+        * for the rest of the command is determined by this field.
         */
        uint16_t cmpl_ring;
-
-       /* This value indicates the command sequence number. */
-       uint16_t seq_id;
-
        /*
-        * Target ID of this command. 0x0 - 0xFFF8 - Used for function ids
-        * 0xFFF8 - 0xFFFE - Reserved for internal processors 0xFFFF - HWRM
+        * This value indicates the what completion ring the request
+        * will be optionally completed on. If the value is -1, then no
+        * CR completion will be generated. Any other value must be a
+        * valid CR ring_id value for this function.
         */
+       uint16_t seq_id;
+       /* This value indicates the command sequence number. */
        uint16_t target_id;
-
        /*
-        * This is the host address where the response will be written when the
-        * request is complete. This area must be 16B aligned and must be
-        * cleared to zero before the request is made.
+        * Target ID of this command. 0x0 - 0xFFF8 - Used for function
+        * ids 0xFFF8 - 0xFFFE - Reserved for internal processors 0xFFFF
+        * - HWRM
         */
        uint64_t resp_addr;
-
        /*
-        * Enumeration denoting the RX, TX type of the resource. This
-        * enumeration is used for resources that are similar for both TX and RX
-        * paths of the chip.
-        */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_FLAGS_PATH \
-                                                       UINT32_C(0x1)
-               /* tx path */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_FLAGS_PATH_TX \
-                                                       (UINT32_C(0x0) << 0)
-               /* rx path */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_FLAGS_PATH_RX \
-                                                       (UINT32_C(0x1) << 0)
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_FLAGS_PATH_LAST \
-                               HWRM_CFA_L2_FILTER_ALLOC_INPUT_FLAGS_PATH_RX
-       /*
-        * Setting of this flag indicates the applicability to the loopback
-        * path.
-        */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_FLAGS_LOOPBACK \
-                                                       UINT32_C(0x2)
-       /*
-        * Setting of this flag indicates drop action. If this flag is not set,
-        * then it should be considered accept action.
-        */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_FLAGS_DROP \
-                                                       UINT32_C(0x4)
-       /*
-        * If this flag is set, all t_l2_* fields are invalid and they should
-        * not be specified. If this flag is set, then l2_* fields refer to
-        * fields of outermost L2 header.
-        */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_FLAGS_OUTERMOST \
-                                                       UINT32_C(0x8)
+        * This is the host address where the response will be written
+        * when the request is complete. This area must be 16B aligned
+        * and must be cleared to zero before the request is made.
+        */
        uint32_t flags;
-
+       /*
+        * Enumeration denoting the RX, TX type of the resource. This
+        * enumeration is used for resources that are similar for both
+        * TX and RX paths of the chip.
+        */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_FLAGS_PATH       UINT32_C(0x1)
+       /* tx path */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_FLAGS_PATH_TX    (UINT32_C(0x0) << 0)
+       /* rx path */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_FLAGS_PATH_RX    (UINT32_C(0x1) << 0)
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_FLAGS_PATH_LAST  \
+               CFA_L2_FILTER_ALLOC_INPUT_FLAGS_PATH_RX
+       /*
+        * Setting of this flag indicates the applicability to the
+        * loopback path.
+        */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_FLAGS_LOOPBACK   UINT32_C(0x2)
+       /*
+        * Setting of this flag indicates drop action. If this flag is
+        * not set, then it should be considered accept action.
+        */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_FLAGS_DROP       UINT32_C(0x4)
+       /*
+        * If this flag is set, all t_l2_* fields are invalid and they
+        * should not be specified. If this flag is set, then l2_*
+        * fields refer to fields of outermost L2 header.
+        */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_FLAGS_OUTERMOST  UINT32_C(0x8)
+       uint32_t enables;
        /* This bit must be '1' for the l2_addr field to be configured. */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_ADDR \
-                                                       UINT32_C(0x1)
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_ADDR  UINT32_C(0x1)
        /* This bit must be '1' for the l2_addr_mask field to be configured. */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_ADDR_MASK \
-                                                       UINT32_C(0x2)
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_ADDR_MASK     UINT32_C(0x2)
        /* This bit must be '1' for the l2_ovlan field to be configured. */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_OVLAN \
-                                                       UINT32_C(0x4)
-       /* This bit must be '1' for the l2_ovlan_mask field to be configured. */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_OVLAN_MASK \
-                                                       UINT32_C(0x8)
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_OVLAN UINT32_C(0x4)
+       /*
+        * This bit must be '1' for the l2_ovlan_mask field to be
+        * configured.
+        */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_OVLAN_MASK    UINT32_C(0x8)
        /* This bit must be '1' for the l2_ivlan field to be configured. */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_IVLAN \
-                                                       UINT32_C(0x10)
-       /* This bit must be '1' for the l2_ivlan_mask field to be configured. */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_IVLAN_MASK \
-                                                       UINT32_C(0x20)
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_IVLAN UINT32_C(0x10)
+       /*
+        * This bit must be '1' for the l2_ivlan_mask field to be
+        * configured.
+        */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_L2_IVLAN_MASK    UINT32_C(0x20)
        /* This bit must be '1' for the t_l2_addr field to be configured. */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_T_L2_ADDR \
-                                                       UINT32_C(0x40)
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_T_L2_ADDR        UINT32_C(0x40)
        /*
-        * This bit must be '1' for the t_l2_addr_mask field to be configured.
+        * This bit must be '1' for the t_l2_addr_mask field to be
+        * configured.
         */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_T_L2_ADDR_MASK \
-                                                       UINT32_C(0x80)
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_T_L2_ADDR_MASK   UINT32_C(0x80)
        /* This bit must be '1' for the t_l2_ovlan field to be configured. */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_T_L2_OVLAN \
-                                                       UINT32_C(0x100)
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_T_L2_OVLAN       UINT32_C(0x100)
        /*
-        * This bit must be '1' for the t_l2_ovlan_mask field to be configured.
+        * This bit must be '1' for the t_l2_ovlan_mask field to be
+        * configured.
         */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_T_L2_OVLAN_MASK \
-                                                       UINT32_C(0x200)
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_T_L2_OVLAN_MASK  UINT32_C(0x200)
        /* This bit must be '1' for the t_l2_ivlan field to be configured. */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_T_L2_IVLAN \
-                                                       UINT32_C(0x400)
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_T_L2_IVLAN       UINT32_C(0x400)
        /*
-        * This bit must be '1' for the t_l2_ivlan_mask field to be configured.
+        * This bit must be '1' for the t_l2_ivlan_mask field to be
+        * configured.
         */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_T_L2_IVLAN_MASK \
-                                                       UINT32_C(0x800)
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_T_L2_IVLAN_MASK  UINT32_C(0x800)
        /* This bit must be '1' for the src_type field to be configured. */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_SRC_TYPE \
-                                                       UINT32_C(0x1000)
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_SRC_TYPE UINT32_C(0x1000)
        /* This bit must be '1' for the src_id field to be configured. */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_SRC_ID \
-                                                       UINT32_C(0x2000)
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_SRC_ID   UINT32_C(0x2000)
        /* This bit must be '1' for the tunnel_type field to be configured. */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_TUNNEL_TYPE \
-                                                       UINT32_C(0x4000)
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_TUNNEL_TYPE      UINT32_C(0x4000)
        /* This bit must be '1' for the dst_id field to be configured. */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_DST_ID \
-                                                       UINT32_C(0x8000)
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_DST_ID   UINT32_C(0x8000)
        /*
-        * This bit must be '1' for the mirror_vnic_id field to be configured.
+        * This bit must be '1' for the mirror_vnic_id field to be
+        * configured.
         */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_MIRROR_VNIC_ID \
-                                                       UINT32_C(0x10000)
-       uint32_t enables;
-
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_MIRROR_VNIC_ID   UINT32_C(0x10000)
+       uint8_t l2_addr[6];
        /*
-        * This value sets the match value for the L2 MAC address. Destination
-        * MAC address for RX path. Source MAC address for TX path.
+        * This value sets the match value for the L2 MAC address.
+        * Destination MAC address for RX path. Source MAC address for
+        * TX path.
         */
-       uint8_t l2_addr[6];
-
        uint8_t unused_0;
        uint8_t unused_1;
-
+       uint8_t l2_addr_mask[6];
        /*
-        * This value sets the mask value for the L2 address. A value of 0 will
-        * mask the corresponding bit from compare.
+        * This value sets the mask value for the L2 address. A value of
+        * 0 will mask the corresponding bit from compare.
         */
-       uint8_t l2_addr_mask[6];
-
-       /* This value sets VLAN ID value for outer VLAN. */
        uint16_t l2_ovlan;
-
+       /* This value sets VLAN ID value for outer VLAN. */
+       uint16_t l2_ovlan_mask;
        /*
-        * This value sets the mask value for the ovlan id. A value of 0 will
-        * mask the corresponding bit from compare.
+        * This value sets the mask value for the ovlan id. A value of 0
+        * will mask the corresponding bit from compare.
         */
-       uint16_t l2_ovlan_mask;
-
-       /* This value sets VLAN ID value for inner VLAN. */
        uint16_t l2_ivlan;
-
+       /* This value sets VLAN ID value for inner VLAN. */
+       uint16_t l2_ivlan_mask;
        /*
-        * This value sets the mask value for the ivlan id. A value of 0 will
-        * mask the corresponding bit from compare.
+        * This value sets the mask value for the ivlan id. A value of 0
+        * will mask the corresponding bit from compare.
         */
-       uint16_t l2_ivlan_mask;
-
        uint8_t unused_2;
        uint8_t unused_3;
-
+       uint8_t t_l2_addr[6];
        /*
-        * This value sets the match value for the tunnel L2 MAC address.
-        * Destination MAC address for RX path. Source MAC address for TX path.
+        * This value sets the match value for the tunnel L2 MAC
+        * address. Destination MAC address for RX path. Source MAC
+        * address for TX path.
         */
-       uint8_t t_l2_addr[6];
-
        uint8_t unused_4;
        uint8_t unused_5;
-
+       uint8_t t_l2_addr_mask[6];
        /*
-        * This value sets the mask value for the tunnel L2 address. A value of
-        * 0 will mask the corresponding bit from compare.
+        * This value sets the mask value for the tunnel L2 address. A
+        * value of 0 will mask the corresponding bit from compare.
         */
-       uint8_t t_l2_addr_mask[6];
-
-       /* This value sets VLAN ID value for tunnel outer VLAN. */
        uint16_t t_l2_ovlan;
-
+       /* This value sets VLAN ID value for tunnel outer VLAN. */
+       uint16_t t_l2_ovlan_mask;
        /*
-        * This value sets the mask value for the tunnel ovlan id. A value of 0
-        * will mask the corresponding bit from compare.
+        * This value sets the mask value for the tunnel ovlan id. A
+        * value of 0 will mask the corresponding bit from compare.
         */
-       uint16_t t_l2_ovlan_mask;
-
-       /* This value sets VLAN ID value for tunnel inner VLAN. */
        uint16_t t_l2_ivlan;
-
+       /* This value sets VLAN ID value for tunnel inner VLAN. */
+       uint16_t t_l2_ivlan_mask;
        /*
-        * This value sets the mask value for the tunnel ivlan id. A value of 0
-        * will mask the corresponding bit from compare.
+        * This value sets the mask value for the tunnel ivlan id. A
+        * value of 0 will mask the corresponding bit from compare.
         */
-       uint16_t t_l2_ivlan_mask;
-
-       /* This value identifies the type of source of the packet. */
-               /* Network port */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_SRC_TYPE_NPORT \
-                                                       (UINT32_C(0x0) << 0)
-               /* Physical function */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_SRC_TYPE_PF \
-                                                       (UINT32_C(0x1) << 0)
-               /* Virtual function */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_SRC_TYPE_VF \
-                                                       (UINT32_C(0x2) << 0)
-               /* Virtual NIC of a function */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_SRC_TYPE_VNIC \
-                                                       (UINT32_C(0x3) << 0)
-               /* Embedded processor for CFA management */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_SRC_TYPE_KONG \
-                                                       (UINT32_C(0x4) << 0)
-               /* Embedded processor for OOB management */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_SRC_TYPE_APE \
-                                                       (UINT32_C(0x5) << 0)
-               /* Embedded processor for RoCE */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_SRC_TYPE_BONO \
-                                                       (UINT32_C(0x6) << 0)
-               /* Embedded processor for network proxy functions */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_SRC_TYPE_TANG \
-                                                       (UINT32_C(0x7) << 0)
        uint8_t src_type;
-
+       /* This value identifies the type of source of the packet. */
+       /* Network port */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_SRC_TYPE_NPORT   UINT32_C(0x0)
+       /* Physical function */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_SRC_TYPE_PF      UINT32_C(0x1)
+       /* Virtual function */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_SRC_TYPE_VF      UINT32_C(0x2)
+       /* Virtual NIC of a function */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_SRC_TYPE_VNIC    UINT32_C(0x3)
+       /* Embedded processor for CFA management */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_SRC_TYPE_KONG    UINT32_C(0x4)
+       /* Embedded processor for OOB management */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_SRC_TYPE_APE     UINT32_C(0x5)
+       /* Embedded processor for RoCE */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_SRC_TYPE_BONO    UINT32_C(0x6)
+       /* Embedded processor for network proxy functions */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_SRC_TYPE_TANG    UINT32_C(0x7)
        uint8_t unused_6;
+       uint32_t src_id;
        /*
-        * This value is the id of the source. For a network port, it represents
-        * port_id. For a physical function, it represents fid. For a virtual
-        * function, it represents vf_id. For a vnic, it represents vnic_id. For
-        * embedded processors, this id is not valid. Notes: 1. The function ID
-        * is implied if it src_id is not provided for a src_type that is either
+        * This value is the id of the source. For a network port, it
+        * represents port_id. For a physical function, it represents
+        * fid. For a virtual function, it represents vf_id. For a vnic,
+        * it represents vnic_id. For embedded processors, this id is
+        * not valid. Notes: 1. The function ID is implied if it src_id
+        * is not provided for a src_type that is either
         */
-       uint32_t src_id;
-
-       /* Tunnel Type. */
-               /* Non-tunnel */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_TUNNEL_TYPE_NONTUNNEL \
-                                                       (UINT32_C(0x0) << 0)
-               /* Virtual eXtensible Local Area Network (VXLAN) */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_TUNNEL_TYPE_VXLAN \
-                                                       (UINT32_C(0x1) << 0)
-               /*
-                * Network Virtualization Generic Routing Encapsulation (NVGRE)
-                */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_TUNNEL_TYPE_NVGRE \
-                                                       (UINT32_C(0x2) << 0)
-               /*
-                * Generic Routing Encapsulation (GRE) inside Ethernet payload
-                */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_TUNNEL_TYPE_L2GRE \
-                                                       (UINT32_C(0x3) << 0)
-               /* IP in IP */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_TUNNEL_TYPE_IPIP \
-                                                       (UINT32_C(0x4) << 0)
-               /* Generic Network Virtualization Encapsulation (Geneve) */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_TUNNEL_TYPE_GENEVE \
-                                                       (UINT32_C(0x5) << 0)
-               /* Multi-Protocol Lable Switching (MPLS) */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_TUNNEL_TYPE_MPLS \
-                                                       (UINT32_C(0x6) << 0)
-               /* Stateless Transport Tunnel (STT) */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_TUNNEL_TYPE_STT \
-                                                       (UINT32_C(0x7) << 0)
-               /*
-                * Generic Routing Encapsulation (GRE) inside IP datagram
-                * payload
-                */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_TUNNEL_TYPE_IPGRE \
-                                                       (UINT32_C(0x8) << 0)
-               /* Any tunneled traffic */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_TUNNEL_TYPE_ANYTUNNEL \
-                                                       (UINT32_C(0xff) << 0)
        uint8_t tunnel_type;
-
+       /* Tunnel Type. */
+       /* Non-tunnel */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_TUNNEL_TYPE_NONTUNNEL    UINT32_C(0x0)
+       /* Virtual eXtensible Local Area Network (VXLAN) */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_TUNNEL_TYPE_VXLAN        UINT32_C(0x1)
+       /*
+        * Network Virtualization Generic Routing
+        * Encapsulation (NVGRE)
+        */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_TUNNEL_TYPE_NVGRE        UINT32_C(0x2)
+       /*
+        * Generic Routing Encapsulation (GRE) inside
+        * Ethernet payload
+        */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_TUNNEL_TYPE_L2GRE        UINT32_C(0x3)
+       /* IP in IP */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_TUNNEL_TYPE_IPIP UINT32_C(0x4)
+       /* Generic Network Virtualization Encapsulation (Geneve) */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_TUNNEL_TYPE_GENEVE       UINT32_C(0x5)
+       /* Multi-Protocol Lable Switching (MPLS) */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_TUNNEL_TYPE_MPLS UINT32_C(0x6)
+       /* Stateless Transport Tunnel (STT) */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_TUNNEL_TYPE_STT  UINT32_C(0x7)
+       /*
+        * Generic Routing Encapsulation (GRE) inside IP
+        * datagram payload
+        */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_TUNNEL_TYPE_IPGRE        UINT32_C(0x8)
+       /* Any tunneled traffic */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_TUNNEL_TYPE_ANYTUNNEL    UINT32_C(0xff)
        uint8_t unused_7;
-
+       uint16_t dst_id;
        /*
         * If set, this value shall represent the Logical VNIC ID of the
         * destination VNIC for the RX path and network port id of the
         * destination port for the TX path.
         */
-       uint16_t dst_id;
-
-       /* Logical VNIC ID of the VNIC where traffic is mirrored. */
        uint16_t mirror_vnic_id;
-
-       /*
-        * This hint is provided to help in placing the filter in the filter
-        * table.
-        */
-               /* No preference */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_PRI_HINT_NO_PREFER \
-                                                       (UINT32_C(0x0) << 0)
-               /* Above the given filter */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_PRI_HINT_ABOVE_FILTER \
-                                                       (UINT32_C(0x1) << 0)
-               /* Below the given filter */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_PRI_HINT_BELOW_FILTER \
-                                                       (UINT32_C(0x2) << 0)
-               /* As high as possible */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_PRI_HINT_MAX \
-                                                       (UINT32_C(0x3) << 0)
-               /* As low as possible */
-       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_PRI_HINT_MIN \
-                                                       (UINT32_C(0x4) << 0)
+       /* Logical VNIC ID of the VNIC where traffic is mirrored. */
        uint8_t pri_hint;
-
+       /*
+        * This hint is provided to help in placing the filter in the
+        * filter table.
+        */
+       /* No preference */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_PRI_HINT_NO_PREFER       UINT32_C(0x0)
+       /* Above the given filter */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_PRI_HINT_ABOVE_FILTER    UINT32_C(0x1)
+       /* Below the given filter */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_PRI_HINT_BELOW_FILTER    UINT32_C(0x2)
+       /* As high as possible */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_PRI_HINT_MAX     UINT32_C(0x3)
+       /* As low as possible */
+       #define HWRM_CFA_L2_FILTER_ALLOC_INPUT_PRI_HINT_MIN     UINT32_C(0x4)
        uint8_t unused_8;
        uint32_t unused_9;
-
+       uint64_t l2_filter_id_hint;
        /*
-        * This is the ID of the filter that goes along with the pri_hint. This
-        * field is valid only for the following values. 1 - Above the given
-        * filter 2 - Below the given filter
+        * This is the ID of the filter that goes along with the
+        * pri_hint. This field is valid only for the following values.
+        * 1 - Above the given filter 2 - Below the given filter
         */
-       uint64_t l2_filter_id_hint;
 } __attribute__((packed));
 
 /* Output (24 bytes) */
 struct hwrm_cfa_l2_filter_alloc_output {
+       uint16_t error_code;
        /*
-        * Pass/Fail or error type Note: receiver to verify the in parameters,
-        * and fail the call with an error when appropriate
+        * Pass/Fail or error type Note: receiver to verify the in
+        * parameters, and fail the call with an error when appropriate
         */
-       uint16_t error_code;
-
-       /* This field returns the type of original request. */
        uint16_t req_type;
-
-       /* This field provides original sequence number of the command. */
+       /* This field returns the type of original request. */
        uint16_t seq_id;
-
-       /*
-        * This field is the length of the response in bytes. The last byte of
-        * the response is a valid flag that will read as '1' when the command
-        * has been completely written to memory.
-        */
+       /* This field provides original sequence number of the command. */
        uint16_t resp_len;
-
        /*
-        * This value identifies a set of CFA data structures used for an L2
-        * context.
+        * This field is the length of the response in bytes. The last
+        * byte of the response is a valid flag that will read as '1'
+        * when the command has been completely written to memory.
         */
        uint64_t l2_filter_id;
-
        /*
-        * This is the ID of the flow associated with this filter. This value
-        * shall be used to match and associate the flow identifier returned in
-        * completion records. A value of 0xFFFFFFFF shall indicate no flow id.
+        * This value identifies a set of CFA data structures used for
+        * an L2 context.
         */
        uint32_t flow_id;
-
+       /*
+        * This is the ID of the flow associated with this filter. This
+        * value shall be used to match and associate the flow
+        * identifier returned in completion records. A value of
+        * 0xFFFFFFFF shall indicate no flow id.
+        */
        uint8_t unused_0;
        uint8_t unused_1;
        uint8_t unused_2;
-
+       uint8_t valid;
        /*
-        * This field is used in Output records to indicate that the output is
-        * completely written to RAM. This field should be read as '1' to
-        * indicate that the output has been completely written. When writing a
-        * command completion or response to an internal processor, the order of
-        * writes has to be such that this field is written last.
+        * This field is used in Output records to indicate that the
+        * output is completely written to RAM. This field should be
+        * read as '1' to indicate that the output has been completely
+        * written. When writing a command completion or response to an
+        * internal processor, the order of writes has to be such that
+        * this field is written last.
         */
-       uint8_t valid;
 } __attribute__((packed));
 
 /* hwrm_cfa_l2_filter_free */
@@ -5473,311 +5407,337 @@ struct hwrm_cfa_l2_filter_alloc_output {
  * Description: Free a L2 filter. The HWRM shall free all associated filter
  * resources with the L2 filter.
  */
-
 /* Input (24 bytes) */
 struct hwrm_cfa_l2_filter_free_input {
-       /*
-        * This value indicates what type of request this is. The format for the
-        * rest of the command is determined by this field.
-        */
        uint16_t req_type;
-
        /*
-        * This value indicates the what completion ring the request will be
-        * optionally completed on. If the value is -1, then no CR completion
-        * will be generated. Any other value must be a valid CR ring_id value
-        * for this function.
+        * This value indicates what type of request this is. The format
+        * for the rest of the command is determined by this field.
         */
        uint16_t cmpl_ring;
-
-       /* This value indicates the command sequence number. */
-       uint16_t seq_id;
-
        /*
-        * Target ID of this command. 0x0 - 0xFFF8 - Used for function ids
-        * 0xFFF8 - 0xFFFE - Reserved for internal processors 0xFFFF - HWRM
+        * This value indicates the what completion ring the request
+        * will be optionally completed on. If the value is -1, then no
+        * CR completion will be generated. Any other value must be a
+        * valid CR ring_id value for this function.
         */
+       uint16_t seq_id;
+       /* This value indicates the command sequence number. */
        uint16_t target_id;
-
        /*
-        * This is the host address where the response will be written when the
-        * request is complete. This area must be 16B aligned and must be
-        * cleared to zero before the request is made.
+        * Target ID of this command. 0x0 - 0xFFF8 - Used for function
+        * ids 0xFFF8 - 0xFFFE - Reserved for internal processors 0xFFFF
+        * - HWRM
         */
        uint64_t resp_addr;
-
        /*
-        * This value identifies a set of CFA data structures used for an L2
-        * context.
+        * This is the host address where the response will be written
+        * when the request is complete. This area must be 16B aligned
+        * and must be cleared to zero before the request is made.
         */
        uint64_t l2_filter_id;
+       /*
+        * This value identifies a set of CFA data structures used for
+        * an L2 context.
+        */
 } __attribute__((packed));
 
 /* Output (16 bytes) */
 struct hwrm_cfa_l2_filter_free_output {
+       uint16_t error_code;
        /*
-        * Pass/Fail or error type Note: receiver to verify the in parameters,
-        * and fail the call with an error when appropriate
+        * Pass/Fail or error type Note: receiver to verify the in
+        * parameters, and fail the call with an error when appropriate
         */
-       uint16_t error_code;
-
-       /* This field returns the type of original request. */
        uint16_t req_type;
-
-       /* This field provides original sequence number of the command. */
+       /* This field returns the type of original request. */
        uint16_t seq_id;
-
+       /* This field provides original sequence number of the command. */
+       uint16_t resp_len;
        /*
-        * This field is the length of the response in bytes. The last byte of
-        * the response is a valid flag that will read as '1' when the command
-        * has been completely written to memory.
+        * This field is the length of the response in bytes. The last
+        * byte of the response is a valid flag that will read as '1'
+        * when the command has been completely written to memory.
         */
-       uint16_t resp_len;
-
        uint32_t unused_0;
        uint8_t unused_1;
        uint8_t unused_2;
        uint8_t unused_3;
-
+       uint8_t valid;
        /*
-        * This field is used in Output records to indicate that the output is
-        * completely written to RAM. This field should be read as '1' to
-        * indicate that the output has been completely written. When writing a
-        * command completion or response to an internal processor, the order of
-        * writes has to be such that this field is written last.
+        * This field is used in Output records to indicate that the
+        * output is completely written to RAM. This field should be
+        * read as '1' to indicate that the output has been completely
+        * written. When writing a command completion or response to an
+        * internal processor, the order of writes has to be such that
+        * this field is written last.
         */
-       uint8_t valid;
 } __attribute__((packed));
 
-/* hwrm_cfa_l2_set_rx_mask */
-/* Description: This command will set rx mask of the function. */
-
+/* hwrm_cfa_l2_filter_cfg */
+/* Description: Change the configuration of an existing L2 filter */
 /* Input (40 bytes) */
-struct hwrm_cfa_l2_set_rx_mask_input {
-       /*
-        * This value indicates what type of request this is. The format for the
-        * rest of the command is determined by this field.
-        */
+struct hwrm_cfa_l2_filter_cfg_input {
        uint16_t req_type;
-
        /*
-        * This value indicates the what completion ring the request will be
-        * optionally completed on. If the value is -1, then no CR completion
-        * will be generated. Any other value must be a valid CR ring_id value
-        * for this function.
+        * This value indicates what type of request this is. The format
+        * for the rest of the command is determined by this field.
         */
        uint16_t cmpl_ring;
-
-       /* This value indicates the command sequence number. */
-       uint16_t seq_id;
-
        /*
-        * Target ID of this command. 0x0 - 0xFFF8 - Used for function ids
-        * 0xFFF8 - 0xFFFE - Reserved for internal processors 0xFFFF - HWRM
+        * This value indicates the what completion ring the request
+        * will be optionally completed on. If the value is -1, then no
+        * CR completion will be generated. Any other value must be a
+        * valid CR ring_id value for this function.
         */
+       uint16_t seq_id;
+       /* This value indicates the command sequence number. */
        uint16_t target_id;
-
        /*
-        * This is the host address where the response will be written when the
-        * request is complete. This area must be 16B aligned and must be
-        * cleared to zero before the request is made.
+        * Target ID of this command. 0x0 - 0xFFF8 - Used for function
+        * ids 0xFFF8 - 0xFFFE - Reserved for internal processors 0xFFFF
+        * - HWRM
         */
        uint64_t resp_addr;
-
-       /* VNIC ID */
-       uint32_t vnic_id;
-
-       /* Reserved for future use. */
-       #define HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_RESERVED     UINT32_C(0x1)
        /*
-        * When this bit is '1', the function is requested to accept multi-cast
-        * packets specified by the multicast addr table.
+        * This is the host address where the response will be written
+        * when the request is complete. This area must be 16B aligned
+        * and must be cleared to zero before the request is made.
         */
-       #define HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_MCAST        UINT32_C(0x2)
+       uint32_t flags;
        /*
-        * When this bit is '1', the function is requested to accept all multi-
-        * cast packets.
+        * Enumeration denoting the RX, TX type of the resource. This
+        * enumeration is used for resources that are similar for both
+        * TX and RX paths of the chip.
         */
-       #define HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_ALL_MCAST    UINT32_C(0x4)
+       #define HWRM_CFA_L2_FILTER_CFG_INPUT_FLAGS_PATH UINT32_C(0x1)
+       /* tx path */
+       #define HWRM_CFA_L2_FILTER_CFG_INPUT_FLAGS_PATH_TX      (UINT32_C(0x0) << 0)
+       /* rx path */
+       #define HWRM_CFA_L2_FILTER_CFG_INPUT_FLAGS_PATH_RX      (UINT32_C(0x1) << 0)
+       #define HWRM_CFA_L2_FILTER_CFG_INPUT_FLAGS_PATH_LAST    \
+               CFA_L2_FILTER_CFG_INPUT_FLAGS_PATH_RX
        /*
-        * When this bit is '1', the function is requested to accept broadcast
-        * packets.
+        * Setting of this flag indicates drop action. If this flag is
+        * not set, then it should be considered accept action.
         */
-       #define HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_BCAST        UINT32_C(0x8)
+       #define HWRM_CFA_L2_FILTER_CFG_INPUT_FLAGS_DROP UINT32_C(0x2)
+       uint32_t enables;
+       /* This bit must be '1' for the dst_id field to be configured. */
+       #define HWRM_CFA_L2_FILTER_CFG_INPUT_ENABLES_DST_ID     UINT32_C(0x1)
        /*
-        * When this bit is '1', the function is requested to be put in the
-        * promiscuous mode. The HWRM should accept any function to set up
-        * promiscuous mode. The HWRM shall follow the semantics below for the
-        * promiscuous mode support. # When partitioning is not enabled on a
-        * port (i.e. single PF on the port), then the PF shall be allowed to be
-        * in the promiscuous mode. When the PF is in the promiscuous mode, then
-        * it shall receive all host bound traffic on that port. # When
-        * partitioning is enabled on a port (i.e. multiple PFs per port) and a
-        * PF on that port is in the promiscuous mode, then the PF receives all
-        * traffic within that partition as identified by a unique identifier
-        * for the PF (e.g. S-Tag). If a unique outer VLAN for the PF is
-        * specified, then the setting of promiscuous mode on that PF shall
-        * result in the PF receiving all host bound traffic with matching outer
-        * VLAN. # A VF shall can be set in the promiscuous mode. In the
-        * promiscuous mode, the VF does not receive any traffic unless a unique
-        * outer VLAN for the VF is specified. If a unique outer VLAN for the VF
-        * is specified, then the setting of promiscuous mode on that VF shall
-        * result in the VF receiving all host bound traffic with the matching
-        * outer VLAN. # The HWRM shall allow the setting of promiscuous mode on
-        * a function independently from the promiscuous mode settings on other
-        * functions.
+        * This bit must be '1' for the new_mirror_vnic_id field to be
+        * configured.
         */
-       #define HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_PROMISCUOUS  UINT32_C(0x10)
+       #define HWRM_CFA_L2_FILTER_CFG_INPUT_ENABLES_NEW_MIRROR_VNIC_ID   UINT32_C(0x2)
+       uint64_t l2_filter_id;
        /*
-        * If this flag is set, the corresponding RX filters shall be set up to
-        * cover multicast/broadcast filters for the outermost Layer 2
-        * destination MAC address field.
+        * This value identifies a set of CFA data structures used for
+        * an L2 context.
         */
-       #define HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_OUTERMOST    UINT32_C(0x20)
-       uint32_t mask;
-
-       /* This is the address for mcast address tbl. */
-       uint64_t mc_tbl_addr;
-
+       uint32_t dst_id;
        /*
-        * This value indicates how many entries in mc_tbl are valid. Each entry
-        * is 6 bytes.
-        */
-       uint32_t num_mc_entries;
-
-       uint32_t unused_0;
+        * If set, this value shall represent the Logical VNIC ID of the
+        * destination VNIC for the RX path and network port id of the
+        * destination port for the TX path.
+        */
+       uint32_t new_mirror_vnic_id;
+       /* New Logical VNIC ID of the VNIC where traffic is mirrored. */
 } __attribute__((packed));
 
 /* Output (16 bytes) */
-struct hwrm_cfa_l2_set_rx_mask_output {
+struct hwrm_cfa_l2_filter_cfg_output {
+       uint16_t error_code;
        /*
-        * Pass/Fail or error type Note: receiver to verify the in parameters,
-        * and fail the call with an error when appropriate
+        * Pass/Fail or error type Note: receiver to verify the in
+        * parameters, and fail the call with an error when appropriate
         */
-       uint16_t error_code;
-
-       /* This field returns the type of original request. */
        uint16_t req_type;
-
-       /* This field provides original sequence number of the command. */
+       /* This field returns the type of original request. */
        uint16_t seq_id;
-
+       /* This field provides original sequence number of the command. */
+       uint16_t resp_len;
        /*
-        * This field is the length of the response in bytes. The last byte of
-        * the response is a valid flag that will read as '1' when the command
-        * has been completely written to memory.
+        * This field is the length of the response in bytes. The last
+        * byte of the response is a valid flag that will read as '1'
+        * when the command has been completely written to memory.
         */
-       uint16_t resp_len;
-
        uint32_t unused_0;
        uint8_t unused_1;
        uint8_t unused_2;
        uint8_t unused_3;
-
+       uint8_t valid;
        /*
-        * This field is used in Output records to indicate that the output is
-        * completely written to RAM. This field should be read as '1' to
-        * indicate that the output has been completely written. When writing a
-        * command completion or response to an internal processor, the order of
-        * writes has to be such that this field is written last.
+        * This field is used in Output records to indicate that the
+        * output is completely written to RAM. This field should be
+        * read as '1' to indicate that the output has been completely
+        * written. When writing a command completion or response to an
+        * internal processor, the order of writes has to be such that
+        * this field is written last.
         */
-       uint8_t valid;
 } __attribute__((packed));
 
-/* hwrm_exec_fwd_resp */
-/*
- * Description: This command is used to send an encapsulated request to the
- * HWRM. This command instructs the HWRM to execute the request and forward the
- * response of the encapsulated request to the location specified in the
- * original request that is encapsulated. The target id of this command shall be
- * set to 0xFFFF (HWRM). The response location in this command shall be used to
- * acknowledge the receipt of the encapsulated request and forwarding of the
- * response.
- */
-
-/* Input (128 bytes) */
-struct hwrm_exec_fwd_resp_input {
-       /*
-        * This value indicates what type of request this is. The format for the
-        * rest of the command is determined by this field.
-        */
+/* hwrm_cfa_l2_set_rx_mask */
+/* Description: This command will set rx mask of the function. */
+/* Input (56 bytes) */
+struct hwrm_cfa_l2_set_rx_mask_input {
        uint16_t req_type;
-
        /*
-        * This value indicates the what completion ring the request will be
-        * optionally completed on. If the value is -1, then no CR completion
-        * will be generated. Any other value must be a valid CR ring_id value
-        * for this function.
+        * This value indicates what type of request this is. The format
+        * for the rest of the command is determined by this field.
         */
        uint16_t cmpl_ring;
-
-       /* This value indicates the command sequence number. */
-       uint16_t seq_id;
-
        /*
-        * Target ID of this command. 0x0 - 0xFFF8 - Used for function ids
-        * 0xFFF8 - 0xFFFE - Reserved for internal processors 0xFFFF - HWRM
+        * This value indicates the what completion ring the request
+        * will be optionally completed on. If the value is -1, then no
+        * CR completion will be generated. Any other value must be a
+        * valid CR ring_id value for this function.
         */
+       uint16_t seq_id;
+       /* This value indicates the command sequence number. */
        uint16_t target_id;
-
        /*
-        * This is the host address where the response will be written when the
-        * request is complete. This area must be 16B aligned and must be
-        * cleared to zero before the request is made.
+        * Target ID of this command. 0x0 - 0xFFF8 - Used for function
+        * ids 0xFFF8 - 0xFFFE - Reserved for internal processors 0xFFFF
+        * - HWRM
         */
        uint64_t resp_addr;
-
        /*
-        * This is an encapsulated request. This request should be executed by
-        * the HWRM and the response should be provided in the response buffer
-        * inside the encapsulated request.
+        * This is the host address where the response will be written
+        * when the request is complete. This area must be 16B aligned
+        * and must be cleared to zero before the request is made.
         */
-       uint32_t encap_request[26];
-
+       uint32_t vnic_id;
+       /* VNIC ID */
+       uint32_t mask;
+       /* Reserved for future use. */
+       #define HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_RESERVED     UINT32_C(0x1)
        /*
-        * This value indicates the target id of the response to the
-        * encapsulated request. 0x0 - 0xFFF8 - Used for function ids 0xFFF8 -
-        * 0xFFFE - Reserved for internal processors 0xFFFF - HWRM
+        * When this bit is '1', the function is requested to accept
+        * multi-cast packets specified by the multicast addr table.
         */
-       uint16_t encap_resp_target_id;
-
-       uint16_t unused_0[3];
+       #define HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_MCAST        UINT32_C(0x2)
+       /*
+        * When this bit is '1', the function is requested to accept all
+        * multi-cast packets.
+        */
+       #define HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_ALL_MCAST    UINT32_C(0x4)
+       /*
+        * When this bit is '1', the function is requested to accept
+        * broadcast packets.
+        */
+       #define HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_BCAST        UINT32_C(0x8)
+       /*
+        * When this bit is '1', the function is requested to be put in
+        * the promiscuous mode. The HWRM should accept any function to
+        * set up promiscuous mode. The HWRM shall follow the semantics
+        * below for the promiscuous mode support. # When partitioning
+        * is not enabled on a port (i.e. single PF on the port), then
+        * the PF shall be allowed to be in the promiscuous mode. When
+        * the PF is in the promiscuous mode, then it shall receive all
+        * host bound traffic on that port. # When partitioning is
+        * enabled on a port (i.e. multiple PFs per port) and a PF on
+        * that port is in the promiscuous mode, then the PF receives
+        * all traffic within that partition as identified by a unique
+        * identifier for the PF (e.g. S-Tag). If a unique outer VLAN
+        * for the PF is specified, then the setting of promiscuous mode
+        * on that PF shall result in the PF receiving all host bound
+        * traffic with matching outer VLAN. # A VF shall can be set in
+        * the promiscuous mode. In the promiscuous mode, the VF does
+        * not receive any traffic unless a unique outer VLAN for the VF
+        * is specified. If a unique outer VLAN for the VF is specified,
+        * then the setting of promiscuous mode on that VF shall result
+        * in the VF receiving all host bound traffic with the matching
+        * outer VLAN. # The HWRM shall allow the setting of promiscuous
+        * mode on a function independently from the promiscuous mode
+        * settings on other functions.
+        */
+       #define HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_PROMISCUOUS  UINT32_C(0x10)
+       /*
+        * If this flag is set, the corresponding RX filters shall be
+        * set up to cover multicast/broadcast filters for the outermost
+        * Layer 2 destination MAC address field.
+        */
+       #define HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_OUTERMOST    UINT32_C(0x20)
+       /*
+        * If this flag is set, the corresponding RX filters shall be
+        * set up to cover multicast/broadcast filters for the VLAN-
+        * tagged packets that match the TPID and VID fields of VLAN
+        * tags in the VLAN tag table specified in this command.
+        */
+       #define HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_VLANONLY     UINT32_C(0x40)
+       /*
+        * If this flag is set, the corresponding RX filters shall be
+        * set up to cover multicast/broadcast filters for non-VLAN
+        * tagged packets and VLAN-tagged packets that match the TPID
+        * and VID fields of VLAN tags in the VLAN tag table specified
+        * in this command.
+        */
+       #define HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_VLAN_NONVLAN UINT32_C(0x80)
+       /*
+        * If this flag is set, the corresponding RX filters shall be
+        * set up to cover multicast/broadcast filters for non-VLAN
+        * tagged packets and VLAN-tagged packets matching any VLAN tag.
+        * If this flag is set, then the HWRM shall ignore VLAN tags
+        * specified in vlan_tag_tbl. If none of vlanonly, vlan_nonvlan,
+        * and anyvlan_nonvlan flags is set, then the HWRM shall ignore
+        * VLAN tags specified in vlan_tag_tbl. The HWRM client shall
+        * set at most one flag out of vlanonly, vlan_nonvlan, and
+        * anyvlan_nonvlan.
+        */
+       #define HWRM_CFA_L2_SET_RX_MASK_INPUT_MASK_ANYVLAN_NONVLAN      UINT32_C(0x100)
+       uint64_t mc_tbl_addr;
+       /* This is the address for mcast address tbl. */
+       uint32_t num_mc_entries;
+       /*
+        * This value indicates how many entries in mc_tbl are valid.
+        * Each entry is 6 bytes.
+        */
+       uint32_t unused_0;
+       uint64_t vlan_tag_tbl_addr;
+       /*
+        * This is the address for VLAN tag table. Each VLAN entry in
+        * the table is 4 bytes of a VLAN tag including TPID, PCP, DEI,
+        * and VID fields in network byte order.
+        */
+       uint32_t num_vlan_tags;
+       /*
+        * This value indicates how many entries in vlan_tag_tbl are
+        * valid. Each entry is 4 bytes.
+        */
+       uint32_t unused_1;
 } __attribute__((packed));
 
 /* Output (16 bytes) */
-struct hwrm_exec_fwd_resp_output {
+struct hwrm_cfa_l2_set_rx_mask_output {
+       uint16_t error_code;
        /*
-        * Pass/Fail or error type Note: receiver to verify the in parameters,
-        * and fail the call with an error when appropriate
+        * Pass/Fail or error type Note: receiver to verify the in
+        * parameters, and fail the call with an error when appropriate
         */
-       uint16_t error_code;
-
-       /* This field returns the type of original request. */
        uint16_t req_type;
-
-       /* This field provides original sequence number of the command. */
+       /* This field returns the type of original request. */
        uint16_t seq_id;
-
+       /* This field provides original sequence number of the command. */
+       uint16_t resp_len;
        /*
-        * This field is the length of the response in bytes. The last byte of
-        * the response is a valid flag that will read as '1' when the command
-        * has been completely written to memory.
+        * This field is the length of the response in bytes. The last
+        * byte of the response is a valid flag that will read as '1'
+        * when the command has been completely written to memory.
         */
-       uint16_t resp_len;
-
        uint32_t unused_0;
        uint8_t unused_1;
        uint8_t unused_2;
        uint8_t unused_3;
-
+       uint8_t valid;
        /*
-        * This field is used in Output records to indicate that the output is
-        * completely written to RAM. This field should be read as '1' to
-        * indicate that the output has been completely written. When writing a
-        * command completion or response to an internal processor, the order of
-        * writes has to be such that this field is written last.
+        * This field is used in Output records to indicate that the
+        * output is completely written to RAM. This field should be
+        * read as '1' to indicate that the output has been completely
+        * written. When writing a command completion or response to an
+        * internal processor, the order of writes has to be such that
+        * this field is written last.
         */
-       uint8_t valid;
 } __attribute__((packed));
 
 /* hwrm_stat_ctx_alloc */
@@ -5785,244 +5745,299 @@ struct hwrm_exec_fwd_resp_output {
  * Description: This command allocates and does basic preparation for a stat
  * context.
  */
-
 /* Input (32 bytes) */
 struct hwrm_stat_ctx_alloc_input {
-       /*
-        * This value indicates what type of request this is. The format for the
-        * rest of the command is determined by this field.
-        */
        uint16_t req_type;
-
        /*
-        * This value indicates the what completion ring the request will be
-        * optionally completed on. If the value is -1, then no CR completion
-        * will be generated. Any other value must be a valid CR ring_id value
-        * for this function.
+        * This value indicates what type of request this is. The format
+        * for the rest of the command is determined by this field.
         */
        uint16_t cmpl_ring;
-
-       /* This value indicates the command sequence number. */
-       uint16_t seq_id;
-
        /*
-        * Target ID of this command. 0x0 - 0xFFF8 - Used for function ids
-        * 0xFFF8 - 0xFFFE - Reserved for internal processors 0xFFFF - HWRM
+        * This value indicates the what completion ring the request
+        * will be optionally completed on. If the value is -1, then no
+        * CR completion will be generated. Any other value must be a
+        * valid CR ring_id value for this function.
         */
+       uint16_t seq_id;
+       /* This value indicates the command sequence number. */
        uint16_t target_id;
-
        /*
-        * This is the host address where the response will be written when the
-        * request is complete. This area must be 16B aligned and must be
-        * cleared to zero before the request is made.
+        * Target ID of this command. 0x0 - 0xFFF8 - Used for function
+        * ids 0xFFF8 - 0xFFFE - Reserved for internal processors 0xFFFF
+        * - HWRM
         */
        uint64_t resp_addr;
-
-       /* This is the address for statistic block. */
-       uint64_t stats_dma_addr;
-
        /*
-        * The statistic block update period in ms. e.g. 250ms, 500ms, 750ms,
-        * 1000ms.
+        * This is the host address where the response will be written
+        * when the request is complete. This area must be 16B aligned
+        * and must be cleared to zero before the request is made.
         */
+       uint64_t stats_dma_addr;
+       /* This is the address for statistic block. */
        uint32_t update_period_ms;
-
+       /*
+        * The statistic block update period in ms. e.g. 250ms, 500ms,
+        * 750ms, 1000ms. If update_period_ms is 0, then the stats
+        * update shall be never done and the DMA address shall not be
+        * used. In this case, the stat block can only be read by
+        * hwrm_stat_ctx_query command.
+        */
        uint32_t unused_0;
 } __attribute__((packed));
 
 /* Output (16 bytes) */
 struct hwrm_stat_ctx_alloc_output {
+       uint16_t error_code;
        /*
-        * Pass/Fail or error type Note: receiver to verify the in parameters,
-        * and fail the call with an error when appropriate
+        * Pass/Fail or error type Note: receiver to verify the in
+        * parameters, and fail the call with an error when appropriate
         */
-       uint16_t error_code;
-
-       /* This field returns the type of original request. */
        uint16_t req_type;
-
+       /* This field returns the type of original request. */
+       uint16_t seq_id;
        /* This field provides original sequence number of the command. */
+       uint16_t resp_len;
+       /*
+        * This field is the length of the response in bytes. The last
+        * byte of the response is a valid flag that will read as '1'
+        * when the command has been completely written to memory.
+        */
+       uint32_t stat_ctx_id;
+       /* This is the statistics context ID value. */
+       uint8_t unused_0;
+       uint8_t unused_1;
+       uint8_t unused_2;
+       uint8_t valid;
+       /*
+        * This field is used in Output records to indicate that the
+        * output is completely written to RAM. This field should be
+        * read as '1' to indicate that the output has been completely
+        * written. When writing a command completion or response to an
+        * internal processor, the order of writes has to be such that
+        * this field is written last.
+        */
+} __attribute__((packed));
+
+/* hwrm_stat_ctx_free */
+/* Description: This command is used to free a stat context. */
+/* Input (24 bytes) */
+struct hwrm_stat_ctx_free_input {
+       uint16_t req_type;
+       /*
+        * This value indicates what type of request this is. The format
+        * for the rest of the command is determined by this field.
+        */
+       uint16_t cmpl_ring;
+       /*
+        * This value indicates the what completion ring the request
+        * will be optionally completed on. If the value is -1, then no
+        * CR completion will be generated. Any other value must be a
+        * valid CR ring_id value for this function.
+        */
        uint16_t seq_id;
+       /* This value indicates the command sequence number. */
+       uint16_t target_id;
+       /*
+        * Target ID of this command. 0x0 - 0xFFF8 - Used for function
+        * ids 0xFFF8 - 0xFFFE - Reserved for internal processors 0xFFFF
+        * - HWRM
+        */
+       uint64_t resp_addr;
+       /*
+        * This is the host address where the response will be written
+        * when the request is complete. This area must be 16B aligned
+        * and must be cleared to zero before the request is made.
+        */
+       uint32_t stat_ctx_id;
+       /* ID of the statistics context that is being queried. */
+       uint32_t unused_0;
+} __attribute__((packed));
 
+/* Output (16 bytes) */
+struct hwrm_stat_ctx_free_output {
+       uint16_t error_code;
        /*
-        * This field is the length of the response in bytes. The last byte of
-        * the response is a valid flag that will read as '1' when the command
-        * has been completely written to memory.
+        * Pass/Fail or error type Note: receiver to verify the in
+        * parameters, and fail the call with an error when appropriate
         */
+       uint16_t req_type;
+       /* This field returns the type of original request. */
+       uint16_t seq_id;
+       /* This field provides original sequence number of the command. */
        uint16_t resp_len;
-
-       /* This is the statistics context ID value. */
+       /*
+        * This field is the length of the response in bytes. The last
+        * byte of the response is a valid flag that will read as '1'
+        * when the command has been completely written to memory.
+        */
        uint32_t stat_ctx_id;
-
+       /* This is the statistics context ID value. */
        uint8_t unused_0;
        uint8_t unused_1;
        uint8_t unused_2;
-
+       uint8_t valid;
        /*
-        * This field is used in Output records to indicate that the output is
-        * completely written to RAM. This field should be read as '1' to
-        * indicate that the output has been completely written. When writing a
-        * command completion or response to an internal processor, the order of
-        * writes has to be such that this field is written last.
+        * This field is used in Output records to indicate that the
+        * output is completely written to RAM. This field should be
+        * read as '1' to indicate that the output has been completely
+        * written. When writing a command completion or response to an
+        * internal processor, the order of writes has to be such that
+        * this field is written last.
         */
-       uint8_t valid;
 } __attribute__((packed));
 
 /* hwrm_stat_ctx_clr_stats */
 /* Description: This command clears statistics of a context. */
-
 /* Input (24 bytes) */
 struct hwrm_stat_ctx_clr_stats_input {
-       /*
-        * This value indicates what type of request this is. The format for the
-        * rest of the command is determined by this field.
-        */
        uint16_t req_type;
-
        /*
-        * This value indicates the what completion ring the request will be
-        * optionally completed on. If the value is -1, then no CR completion
-        * will be generated. Any other value must be a valid CR ring_id value
-        * for this function.
+        * This value indicates what type of request this is. The format
+        * for the rest of the command is determined by this field.
         */
        uint16_t cmpl_ring;
-
-       /* This value indicates the command sequence number. */
-       uint16_t seq_id;
-
        /*
-        * Target ID of this command. 0x0 - 0xFFF8 - Used for function ids
-        * 0xFFF8 - 0xFFFE - Reserved for internal processors 0xFFFF - HWRM
+        * This value indicates the what completion ring the request
+        * will be optionally completed on. If the value is -1, then no
+        * CR completion will be generated. Any other value must be a
+        * valid CR ring_id value for this function.
         */
+       uint16_t seq_id;
+       /* This value indicates the command sequence number. */
        uint16_t target_id;
-
        /*
-        * This is the host address where the response will be written when the
-        * request is complete. This area must be 16B aligned and must be
-        * cleared to zero before the request is made.
+        * Target ID of this command. 0x0 - 0xFFF8 - Used for function
+        * ids 0xFFF8 - 0xFFFE - Reserved for internal processors 0xFFFF
+        * - HWRM
         */
        uint64_t resp_addr;
-
-       /* ID of the statistics context that is being queried. */
+       /*
+        * This is the host address where the response will be written
+        * when the request is complete. This area must be 16B aligned
+        * and must be cleared to zero before the request is made.
+        */
        uint32_t stat_ctx_id;
-
+       /* ID of the statistics context that is being queried. */
        uint32_t unused_0;
 } __attribute__((packed));
 
 /* Output (16 bytes) */
 struct hwrm_stat_ctx_clr_stats_output {
+       uint16_t error_code;
        /*
-        * Pass/Fail or error type Note: receiver to verify the in parameters,
-        * and fail the call with an error when appropriate
+        * Pass/Fail or error type Note: receiver to verify the in
+        * parameters, and fail the call with an error when appropriate
         */
-       uint16_t error_code;
-
-       /* This field returns the type of original request. */
        uint16_t req_type;
-
-       /* This field provides original sequence number of the command. */
+       /* This field returns the type of original request. */
        uint16_t seq_id;
-
+       /* This field provides original sequence number of the command. */
+       uint16_t resp_len;
        /*
-        * This field is the length of the response in bytes. The last byte of
-        * the response is a valid flag that will read as '1' when the command
-        * has been completely written to memory.
+        * This field is the length of the response in bytes. The last
+        * byte of the response is a valid flag that will read as '1'
+        * when the command has been completely written to memory.
         */
-       uint16_t resp_len;
-
        uint32_t unused_0;
        uint8_t unused_1;
        uint8_t unused_2;
        uint8_t unused_3;
-
+       uint8_t valid;
        /*
-        * This field is used in Output records to indicate that the output is
-        * completely written to RAM. This field should be read as '1' to
-        * indicate that the output has been completely written. When writing a
-        * command completion or response to an internal processor, the order of
-        * writes has to be such that this field is written last.
+        * This field is used in Output records to indicate that the
+        * output is completely written to RAM. This field should be
+        * read as '1' to indicate that the output has been completely
+        * written. When writing a command completion or response to an
+        * internal processor, the order of writes has to be such that
+        * this field is written last.
         */
-       uint8_t valid;
 } __attribute__((packed));
 
-/* hwrm_stat_ctx_free */
-/* Description: This command is used to free a stat context. */
-/* Input (24 bytes) */
-
-struct hwrm_stat_ctx_free_input {
-       /*
-        * This value indicates what type of request this is. The format for the
-        * rest of the command is determined by this field.
-        */
+/* hwrm_exec_fwd_resp */
+/*
+ * Description: This command is used to send an encapsulated request to the
+ * HWRM. This command instructs the HWRM to execute the request and forward the
+ * response of the encapsulated request to the location specified in the
+ * original request that is encapsulated. The target id of this command shall be
+ * set to 0xFFFF (HWRM). The response location in this command shall be used to
+ * acknowledge the receipt of the encapsulated request and forwarding of the
+ * response.
+ */
+/* Input (128 bytes) */
+struct hwrm_exec_fwd_resp_input {
        uint16_t req_type;
-
        /*
-        * This value indicates the what completion ring the request will be
-        * optionally completed on. If the value is -1, then no CR completion
-        * will be generated. Any other value must be a valid CR ring_id value
-        * for this function.
+        * This value indicates what type of request this is. The format
+        * for the rest of the command is determined by this field.
         */
        uint16_t cmpl_ring;
-
-       /* This value indicates the command sequence number. */
-       uint16_t seq_id;
-
        /*
-        * Target ID of this command. 0x0 - 0xFFF8 - Used for function ids
-        * 0xFFF8 - 0xFFFE - Reserved for internal processors 0xFFFF - HWRM
+        * This value indicates the what completion ring the request
+        * will be optionally completed on. If the value is -1, then no
+        * CR completion will be generated. Any other value must be a
+        * valid CR ring_id value for this function.
         */
+       uint16_t seq_id;
+       /* This value indicates the command sequence number. */
        uint16_t target_id;
-
        /*
-        * This is the host address where the response will be written when the
-        * request is complete. This area must be 16B aligned and must be
-        * cleared to zero before the request is made.
+        * Target ID of this command. 0x0 - 0xFFF8 - Used for function
+        * ids 0xFFF8 - 0xFFFE - Reserved for internal processors 0xFFFF
+        * - HWRM
         */
        uint64_t resp_addr;
-
-       /* ID of the statistics context that is being queried. */
-       uint32_t stat_ctx_id;
-
-       uint32_t unused_0;
+       /*
+        * This is the host address where the response will be written
+        * when the request is complete. This area must be 16B aligned
+        * and must be cleared to zero before the request is made.
+        */
+       uint32_t encap_request[26];
+       /*
+        * This is an encapsulated request. This request should be
+        * executed by the HWRM and the response should be provided in
+        * the response buffer inside the encapsulated request.
+        */
+       uint16_t encap_resp_target_id;
+       /*
+        * This value indicates the target id of the response to the
+        * encapsulated request. 0x0 - 0xFFF8 - Used for function ids
+        * 0xFFF8 - 0xFFFE - Reserved for internal processors 0xFFFF -
+        * HWRM
+        */
+       uint16_t unused_0[3];
 } __attribute__((packed));
 
 /* Output (16 bytes) */
-
-struct hwrm_stat_ctx_free_output {
+struct hwrm_exec_fwd_resp_output {
+       uint16_t error_code;
        /*
-        * Pass/Fail or error type Note: receiver to verify the in parameters,
-        * and fail the call with an error when appropriate
+        * Pass/Fail or error type Note: receiver to verify the in
+        * parameters, and fail the call with an error when appropriate
         */
-       uint16_t error_code;
-
-       /* This field returns the type of original request. */
        uint16_t req_type;
-
-       /* This field provides original sequence number of the command. */
+       /* This field returns the type of original request. */
        uint16_t seq_id;
-
+       /* This field provides original sequence number of the command. */
+       uint16_t resp_len;
        /*
-        * This field is the length of the response in bytes. The last byte of
-        * the response is a valid flag that will read as '1' when the command
-        * has been completely written to memory.
+        * This field is the length of the response in bytes. The last
+        * byte of the response is a valid flag that will read as '1'
+        * when the command has been completely written to memory.
         */
-       uint16_t resp_len;
-
-       /* This is the statistics context ID value. */
-       uint32_t stat_ctx_id;
-
-       uint8_t unused_0;
+       uint32_t unused_0;
        uint8_t unused_1;
        uint8_t unused_2;
-
+       uint8_t unused_3;
+       uint8_t valid;
        /*
-        * This field is used in Output records to indicate that the output is
-        * completely written to RAM. This field should be read as '1' to
-        * indicate that the output has been completely written. When writing a
-        * command completion or response to an internal processor, the order of
-        * writes has to be such that this field is written last.
+        * This field is used in Output records to indicate that the
+        * output is completely written to RAM. This field should be
+        * read as '1' to indicate that the output has been completely
+        * written. When writing a command completion or response to an
+        * internal processor, the order of writes has to be such that
+        * this field is written last.
         */
-       uint8_t valid;
 } __attribute__((packed));
 
 #endif