On 1/17/2017 10:09 AM, Shreyansh Jain wrote:
> Given a bus, attach and detach callbacks allow the implementation to
> handles calls from EAL for attaching or detaching a named device.
> 
> Signed-off-by: Shreyansh Jain <shreyansh.j...@nxp.com>

<...>

> +/**
> + * Search and detach a PCI device from PCI Bus
> + * Implements rte_bus->detach
> + *
> + * @param device_name
> + *   Name of the device to search and detach
> + *
> + * @return
> + *   0 for successful detaching of device
> + *   >0 if device not found on bus
> + *   <0 in case of error in removal.

These are the return values expected by rte_eal_dev_detach(), but
rte_eal_pci_detach() is not following these right now, which is causing
failure on detaching virtual devices.

Fix is not complex, it may be an option to fix this as a separate patch
after this patchset applied.

> + */
> +int
> +rte_eal_pci_detach(const char *device_name);
> +
> +/**

<...>

Reply via email to