Now that we no longer depend on the number of VFs being allocated, we can
move the ice_mbx_init_snapshot function earlier. This will be required by
Scalable IOV as we will not be calling ice_sriov_configure for Scalable
VFs.
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tested-by: Marek Szlosek <marek.szlosek@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
 
        mutex_init(&pf->vfs.table_lock);
        hash_init(pf->vfs.table);
+       ice_mbx_init_snapshot(&pf->hw);
 
        return 0;
 }
 
                return -EBUSY;
        }
 
-       ice_mbx_init_snapshot(&pf->hw);
-
        err = ice_pci_sriov_ena(pf, num_vfs);
        if (err)
                return err;
 
        return 0;
 }
 
+static inline void ice_mbx_init_snapshot(struct ice_hw *hw)
+{
+}
+
 #endif /* CONFIG_PCI_IOV */
 #endif /* _ICE_VF_MBX_H_ */