/* Attempt to configure interrupts using the best available capabilities of the hardware and kernel.  */
static void igbvf_set_interrupt_capability(struct igbvf_adapter *)
/* Attempt to configure interrupts using the best available capabilities of the hardware and kernel.  */
static void igbvf_set_interrupt_capability(struct igbvf_adapter *)
{
	int err = -ENOMEM;
	int i;
	adapter->msix_entries = kcalloc(3, sizeof(struct msix_entry),
	                                GFP_KERNEL);
	if (adapter->msix_entries) {
		for (i = 0; i < 3; i++)
			adapter->msix_entries[i].entry = i;
		err = pci_enable_msix(adapter->pdev,
		                      adapter->msix_entries, 3);
	}
	if (err) {
		dev_err(&adapter->pdev->dev,
		        "Failed to initialize MSI-X interrupts.\n");
		igbvf_reset_interrupt_capability(adapter);
	}
}