]> git.proxmox.com Git - qemu.git/commitdiff
rdma: silly ipv6 bugfix
authorMichael R. Hines <mrhines@us.ibm.com>
Mon, 19 Aug 2013 02:27:08 +0000 (22:27 -0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 24 Sep 2013 23:54:58 +0000 (18:54 -0500)
My bad - but it's very important for us to warn the user that
IPv6 is broken on RoCE in linux right now, until linux releases
a fixed version.

Signed-off-by: Michael R. Hines <mrhines@us.ibm.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(cherry picked from commit c89aa2f1851b08c3efa8a1070c0a6b9a36e1227f)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
migration-rdma.c

index 3d1266f40a7fdbe3b7a66fccc6fe394b13af5901..f5e75d600d06366c8e22cd68103e442948972a0e 100644 (file)
@@ -920,9 +920,11 @@ static int qemu_rdma_resolve_host(RDMAContext *rdma, Error **errp)
         ret = rdma_resolve_addr(rdma->cm_id, NULL, e->ai_dst_addr,
                 RDMA_RESOLVE_TIMEOUT_MS);
         if (!ret) {
-            ret = qemu_rdma_broken_ipv6_kernel(errp, rdma->cm_id->verbs);
-            if (ret) {
-                continue;
+            if (e->ai_family == AF_INET6) {
+                ret = qemu_rdma_broken_ipv6_kernel(errp, rdma->cm_id->verbs);
+                if (ret) {
+                    continue;
+                }
             }
             goto route;
         }