]> git.droids-corp.org - dpdk.git/blobdiff - drivers/bus/vdev/vdev.c
eal: allow probing a device again
[dpdk.git] / drivers / bus / vdev / vdev.c
index f666099e6193247e0355655d22c5528b9a1c2e4a..06f3148439356325402f6ddc405bf420a17b8957 100644 (file)
@@ -226,6 +226,11 @@ insert_vdev(const char *name, const char *args, struct rte_vdev_device **p_dev)
        dev->device.name = devargs->name;
 
        if (find_vdev(name)) {
+               /*
+                * A vdev is expected to have only one port.
+                * So there is no reason to try probing again,
+                * even with new arguments.
+                */
                ret = -EEXIST;
                goto fail;
        }