]> git.droids-corp.org - dpdk.git/blobdiff - drivers/bus/pci/linux/pci.c
bus/pci: fix devargs on probing again
[dpdk.git] / drivers / bus / pci / linux / pci.c
index 740a2cdad4ecc3f0474912e35a59adbc9f839baa..71b0a3053d5775d728a70b5e18264ab37ce74751 100644 (file)
@@ -377,6 +377,11 @@ pci_scan_one(const char *dirname, const struct rte_pci_addr *addr)
                                                 */
                                                RTE_LOG(ERR, EAL, "Unexpected device scan at %s!\n",
                                                        filename);
+                                       else if (dev2->device.devargs !=
+                                                dev->device.devargs) {
+                                               rte_devargs_remove(dev2->device.devargs);
+                                               pci_name_set(dev2);
+                                       }
                                }
                                free(dev);
                        }