nfp: expose device hotplug capability
authorAlejandro Lucero <alejandro.lucero@netronome.com>
Tue, 26 Apr 2016 13:10:25 +0000 (14:10 +0100)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 6 May 2016 13:51:22 +0000 (15:51 +0200)
RTE_PCI_DRV_DETACHABLE flag is required to indicate that a device
can be detached during execution.

Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>
drivers/net/nfp/nfp_net.c

index 1259d2c..ea5a2a3 100644 (file)
@@ -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),