From: Gaetan Rivet Date: Wed, 26 Jul 2017 13:35:54 +0000 (+0200) Subject: net/mlx4: advertise the detach capability X-Git-Tag: spdx-start~2333 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ac075085c193bd231eef730eef7b208e2857c5ed;p=dpdk.git net/mlx4: advertise the detach capability This PMD supports hotplug, it is able to be detached. Signed-off-by: Gaetan Rivet Acked-by: Adrien Mazarguil --- diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index d41552bd68..8451f5b846 100644 --- a/drivers/net/mlx4/mlx4.c +++ b/drivers/net/mlx4/mlx4.c @@ -6376,6 +6376,7 @@ mlx4_pci_probe(struct rte_pci_driver *pci_drv, struct rte_pci_device *pci_dev) priv->dev = eth_dev; eth_dev->dev_ops = &mlx4_dev_ops; + eth_dev->data->dev_flags |= RTE_ETH_DEV_DETACHABLE; /* Bring Ethernet device up. */ DEBUG("forcing Ethernet interface up");