···863863864864 /* used to synchronize stats collecting */865865 int stats_state;866866+867867+ /* used for synchronization of concurrent threads statistics handling */868868+ spinlock_t stats_lock;869869+866870 /* used by dmae command loader */867871 struct dmae_command stats_dmae;868872 int executer_idx;
···17221722 u16 eeprom_apme_mask = IGB_EEPROM_APME;17231723 u32 part_num;1724172417251725+ /* Catch broken hardware that put the wrong VF device ID in17261726+ * the PCIe SR-IOV capability.17271727+ */17281728+ if (pdev->is_virtfn) {17291729+ WARN(1, KERN_ERR "%s (%hx:%hx) should not be a VF!\n",17301730+ pci_name(pdev), pdev->vendor, pdev->device);17311731+ return -EINVAL;17321732+ }17331733+17251734 err = pci_enable_device_mem(pdev);17261735 if (err)17271736 return err;
+9
drivers/net/ixgbe/ixgbe_main.c
···65396539#endif65406540 u32 part_num, eec;6541654165426542+ /* Catch broken hardware that put the wrong VF device ID in65436543+ * the PCIe SR-IOV capability.65446544+ */65456545+ if (pdev->is_virtfn) {65466546+ WARN(1, KERN_ERR "%s (%hx:%hx) should not be a VF!\n",65476547+ pci_name(pdev), pdev->vendor, pdev->device);65486548+ return -EINVAL;65496549+ }65506550+65426551 err = pci_enable_device_mem(pdev);65436552 if (err)65446553 return err;