mem: allow memseg lists to be marked as external
[dpdk.git] / drivers / net / virtio / virtio_user / vhost_kernel.c
index b3bfcb7..990ce80 100644 (file)
@@ -78,6 +78,9 @@ add_memseg_list(const struct rte_memseg_list *msl, void *arg)
        void *start_addr;
        uint64_t len;
 
+       if (msl->external)
+               return 0;
+
        if (vm->nregions >= max_regions)
                return -1;