From: Gaetan Rivet Date: Wed, 26 Jul 2017 13:35:55 +0000 (+0200) Subject: net/mlx5: advertise the detach capability X-Git-Tag: spdx-start~2332 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;ds=sidebyside;h=bd735c31c757e4f74a8087f79984cb16497acb73;p=dpdk.git net/mlx5: advertise the detach capability Signed-off-by: Gaetan Rivet Acked-by: Adrien Mazarguil --- diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index 49d4dba2a8..5fd0e7680c 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -788,6 +788,7 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv, struct rte_pci_device *pci_dev) eth_dev->device = &pci_dev->device; rte_eth_copy_pci_info(eth_dev, pci_dev); + eth_dev->data->dev_flags |= RTE_ETH_DEV_DETACHABLE; eth_dev->device->driver = &mlx5_driver.driver; priv->dev = eth_dev; eth_dev->dev_ops = &mlx5_dev_ops;