/* Restart the card from scratch, as if from a cold-boot. Implementation resembles the first-half of the igbvf_resume routine.  */
static pci_ers_result_t igbvf_io_slot_reset(struct pci_dev *pdev)
/* Restart the card from scratch, as if from a cold-boot. Implementation resembles the first-half of the igbvf_resume routine.  */
static pci_ers_result_t igbvf_io_slot_reset(struct pci_dev *pdev)
{
	struct net_device *netdev = pci_get_drvdata(pdev);
	struct igbvf_adapter *adapter = netdev_priv(netdev);
	if (pci_enable_device_mem(pdev)) {
		dev_err(&pdev->dev,
			"Cannot re-enable PCI device after reset.\n");
		return PCI_ERS_RESULT_DISCONNECT;
	}
	pci_set_master(pdev);
	igbvf_reset(adapter);
	return PCI_ERS_RESULT_RECOVERED;
}