]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/virtio/virtio_user_ethdev.c
ethdev: add probing finish function
[dpdk.git] / drivers / net / virtio / virtio_user_ethdev.c
index 4e7b3c34f9dc6bb02d6c8168d46cbe3a32de946b..8eab909da271b5debfd9c4da8b6c8f60fc8a3e3c 100644 (file)
@@ -563,6 +563,7 @@ virtio_user_pmd_probe(struct rte_vdev_device *dev)
                        virtio_user_eth_dev_free(eth_dev);
                        goto end;
                }
+
        } else {
                eth_dev = rte_eth_dev_attach_secondary(rte_vdev_device_name(dev));
                if (!eth_dev)
@@ -575,6 +576,8 @@ virtio_user_pmd_probe(struct rte_vdev_device *dev)
                virtio_user_eth_dev_free(eth_dev);
                goto end;
        }
+
+       rte_eth_dev_probing_finish(eth_dev);
        ret = 0;
 
 end: