Re: [dpdk-dev] [PATCH 1/4] eal: fix hotplug add and hotplug remove

2018-07-18 Thread Gaƫtan Rivet
Hi Qi, On Thu, Jul 12, 2018 at 10:01:41PM +0800, Qi Zhang wrote: > If hotplug add an already plugged PCI device, it will > cause rte_pci_device->device.name be corrupted due to unexpected > rte_devargs_remove. Also if try to hotplug remove an already > unplugged device, it will cause segment fault

[dpdk-dev] [PATCH 1/4] eal: fix hotplug add and hotplug remove

2018-07-12 Thread Qi Zhang
If hotplug add an already plugged PCI device, it will cause rte_pci_device->device.name be corrupted due to unexpected rte_devargs_remove. Also if try to hotplug remove an already unplugged device, it will cause segment fault due to unexpected bus->unplug on a rte_device whose driver is NULL. The p