]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/vhost/rte_eth_vhost.c
net/ice/base: add hook to send AdminQ command
[dpdk.git] / drivers / net / vhost / rte_eth_vhost.c
index 4a7b1b608c724d7bcaf3d0ff94c4e87a784c56b9..458ed58f5fca940f133e6676a693c0a2b0ef458d 100644 (file)
@@ -876,6 +876,11 @@ vhost_driver_setup(struct rte_eth_dev *eth_dev)
        unsigned int numa_node = eth_dev->device->numa_node;
        const char *name = eth_dev->device->name;
 
+       /* Don't try to setup again if it has already been done. */
+       list = find_internal_resource(internal->iface_name);
+       if (list)
+               return 0;
+
        list = rte_zmalloc_socket(name, sizeof(*list), 0, numa_node);
        if (list == NULL)
                return -1;