[dpdk-dev] [dpdk-stable] [PATCH v2] bus/pci: fix driver detach clear

David Marchand david.marchand at redhat.com
Wed Nov 20 23:52:27 CET 2019


On Wed, Nov 20, 2019 at 10:48 AM Matan Azrad <matan at mellanox.com> wrote:
>
> When a rte_device is unplugged, the driver should be detached from the
> device.
>
> The PCI detach driver operation wrongly didn't clear the driver from the
> device structure what remain the device in probe state from the EAL
> point of view.
>
> For example, when a device is removed twice using rte_dev_remove, it
> cause a crash in EAL.
>
> Clear the driver in driver detach successful operation.
>
> Signed-off-by: Matan Azrad <matan at mellanox.com>
Acked-by: Thomas Monjalon <thomas at monjalon.net>

Applied with updated commitlog.
Thanks.


--
David Marchand



More information about the dev mailing list