From: Alejandro Lucero Date: Tue, 26 Apr 2016 13:10:25 +0000 (+0100) Subject: nfp: expose device hotplug capability X-Git-Tag: spdx-start~6948 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6e138189cefc1e29d6da65e1b50e0920882ec41f;p=dpdk.git nfp: expose device hotplug capability RTE_PCI_DRV_DETACHABLE flag is required to indicate that a device can be detached during execution. Signed-off-by: Alejandro Lucero --- diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c index 1259d2c6b3..ea5a2a349e 100644 --- a/drivers/net/nfp/nfp_net.c +++ b/drivers/net/nfp/nfp_net.c @@ -2466,7 +2466,8 @@ static struct eth_driver rte_nfp_net_pmd = { { .name = "rte_nfp_net_pmd", .id_table = pci_id_nfp_net_map, - .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC, + .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC | + RTE_PCI_DRV_DETACHABLE, }, .eth_dev_init = nfp_net_init, .dev_private_size = sizeof(struct nfp_net_adapter),