src/dpdk/drivers/common/mlx5/mlx5_common_pci.c
static int
mlx5_common_pci_remove(struct rte_pci_device *pci_dev)
{
	struct mlx5_pci_device *dev;
	int ret;

	dev = pci_to_mlx5_device(pci_dev);
	if (!dev)
		return -ENODEV;
	/* Matching device found, cleanup and unload drivers. */
	ret = drivers_remove(dev, dev->classes_loaded);
	if (!ret)
		dev_release(dev);
	return ret;
}
/**
 * DPDK callback to remove one or more drivers for a PCI device.
 *
 * This function removes all drivers probed for a given PCI device.
 *
 * @param[in] pci_dev
 *   Pointer to the PCI device.
 *
 * @return
 *   0 on success, the function cannot fail.
 */
DPDK callback to remove one or more drivers for a PCI device.
This function removes all drivers probed for a given PCI device.

@param[in] pci_dev
Pointer to the PCI device.

@return
0 on success, the function cannot fail.
DPDK callback to remove one or more drivers for a PCI device . This function removes all drivers probed for a given PCI device . @param [ in ] pci_dev Pointer to the PCI device . @return 0 on success the function cannot fail .
static int
mlx5_common_pci_remove(struct rte_pci_device *pci_dev)
{
	struct mlx5_pci_device *dev;
	int ret;
	dev = pci_to_mlx5_device(pci_dev);
	if (!dev)
		return -ENODEV;
	ret = drivers_remove(dev, dev->classes_loaded);
	if (!ret)
		dev_release(dev);
	return ret;
}
static int mlx5_common_pci_remove ( struct rte_pci_device * pci_dev ) { struct mlx5_pci_device * dev ; int ret ; dev = pci_to_mlx5_device ( pci_dev ) ; if ( ! dev ) return - ENODEV ; ret = drivers_remove ( dev , dev -> classes_loaded ) ; if ( ! ret ) dev_release ( dev ) ; return ret ; }
DPDK callback to remove one or more drivers for a PCI device.
DPDK callback to remove one or more drivers for a PCI device .
/* Matching device found, cleanup and unload drivers. */