net/sfc: advertise that device is detachable
authorAndrew Rybchenko <arybchenko@solarflare.com>
Thu, 25 May 2017 12:03:18 +0000 (13:03 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 12 Jun 2017 09:41:26 +0000 (10:41 +0100)
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/sfc_ethdev.c

index 91b34eb..0faf590 100644 (file)
@@ -1642,6 +1642,8 @@ sfc_eth_dev_init(struct rte_eth_dev *dev)
        /* Copy PCI device info to the dev->data */
        rte_eth_copy_pci_info(dev, pci_dev);
 
+       dev->data->dev_flags |= RTE_ETH_DEV_DETACHABLE;
+
        rc = sfc_kvargs_parse(sa);
        if (rc != 0)
                goto fail_kvargs_parse;