net/hns3: fix timing in mailbox
[dpdk.git] / drivers / net / cxgbe / cxgbevf_main.c
index 35d8734..f639612 100644 (file)
@@ -3,8 +3,8 @@
  * All rights reserved.
  */
 
-#include <rte_ethdev_driver.h>
-#include <rte_ethdev_pci.h>
+#include <ethdev_driver.h>
+#include <ethdev_pci.h>
 #include <rte_malloc.h>
 
 #include "base/common.h"
@@ -261,8 +261,6 @@ allocate_mac:
                        goto out_free;
                }
 
-               pi->eth_dev->data->dev_flags |= RTE_ETH_DEV_CLOSE_REMOVE;
-
                if (i > 0) {
                        /* First port will be notified by upper layer */
                        rte_eth_dev_probing_finish(eth_dev);