Next patch will need to encode more Rx metadata in the skb control
block, so create a dedicated field for it and move the cookie index
there.
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
        bool is_emad;
 };
 
+struct mlxsw_rx_md_info {
+       u32 cookie_index;
+};
+
 bool mlxsw_core_skb_transmit_busy(struct mlxsw_core *mlxsw_core,
                                  const struct mlxsw_tx_info *tx_info);
 int mlxsw_core_skb_transmit(struct mlxsw_core *mlxsw_core, struct sk_buff *skb,
 struct mlxsw_skb_cb {
        union {
                struct mlxsw_tx_info tx_info;
-               u32 cookie_index; /* Only used during receive */
+               struct mlxsw_rx_md_info rx_md_info;
        };
 };
 
 
 
                if (mlxsw_pci->max_cqe_ver >= MLXSW_PCI_CQE_V2)
                        cookie_index = mlxsw_pci_cqe2_user_def_val_orig_pkt_len_get(cqe);
-               mlxsw_skb_cb(skb)->cookie_index = cookie_index;
+               mlxsw_skb_cb(skb)->rx_md_info.cookie_index = cookie_index;
        } else if (rx_info.trap_id >= MLXSW_TRAP_ID_MIRROR_SESSION0 &&
                   rx_info.trap_id <= MLXSW_TRAP_ID_MIRROR_SESSION7 &&
                   mlxsw_pci->max_cqe_ver >= MLXSW_PCI_CQE_V2) {
 
 static void mlxsw_sp_rx_acl_drop_listener(struct sk_buff *skb, u8 local_port,
                                          void *trap_ctx)
 {
-       u32 cookie_index = mlxsw_skb_cb(skb)->cookie_index;
+       u32 cookie_index = mlxsw_skb_cb(skb)->rx_md_info.cookie_index;
        const struct flow_action_cookie *fa_cookie;
        struct devlink_port *in_devlink_port;
        struct mlxsw_sp_port *mlxsw_sp_port;