View | Details | Raw Unified | Return to bug 207037
Collapse All | Expand All

(-)sys/dev/ixgbe/if_ixv.c (-5 / +9 lines)
Lines 1348-1358 Link Here
1348
	*/
1348
	*/
1349
	if (adapter->hw.mac.type == ixgbe_mac_82599_vf) {
1349
	if (adapter->hw.mac.type == ixgbe_mac_82599_vf) {
1350
		int msix_ctrl;
1350
		int msix_ctrl;
1351
		pci_find_cap(dev, PCIY_MSIX, &rid);
1351
		error = pci_find_cap(dev, PCIY_MSIX, &rid);
1352
		rid += PCIR_MSIX_CTRL;
1352
		if (error) {
1353
		msix_ctrl = pci_read_config(dev, rid, 2);
1353
			device_printf(dev, "Finding MSIX capability failed\n");
1354
		msix_ctrl |= PCIM_MSIXCTRL_MSIX_ENABLE;
1354
		} else {
1355
		pci_write_config(dev, rid, msix_ctrl, 2);
1355
			rid += PCIR_MSIX_CTRL;
1356
			msix_ctrl = pci_read_config(dev, rid, 2);
1357
			msix_ctrl |= PCIM_MSIXCTRL_MSIX_ENABLE;
1358
			pci_write_config(dev, rid, msix_ctrl, 2);
1359
		}
1356
	}
1360
	}
1357
1361
1358
	return (0);
1362
	return (0);

Return to bug 207037