From: Andrew Rybchenko Date: Thu, 25 May 2017 12:03:18 +0000 (+0100) Subject: net/sfc: advertise that device is detachable X-Git-Tag: spdx-start~3141 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e71ec16bbb482f58097d67f6bc192f8d2c7f84d1;p=dpdk.git net/sfc: advertise that device is detachable Signed-off-by: Andrew Rybchenko --- diff --git a/drivers/net/sfc/sfc_ethdev.c b/drivers/net/sfc/sfc_ethdev.c index 91b34eb478..0faf59072e 100644 --- a/drivers/net/sfc/sfc_ethdev.c +++ b/drivers/net/sfc/sfc_ethdev.c @@ -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;