]> Git Repo - qemu.git/commitdiff
rdma: silly ipv6 bugfix
authorMichael R. Hines <[email protected]>
Mon, 19 Aug 2013 02:27:08 +0000 (22:27 -0400)
committerMichael Tokarev <[email protected]>
Sun, 1 Sep 2013 15:03:43 +0000 (19:03 +0400)
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 <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
migration-rdma.c

index f540366944f53e5e8305f3193e2db6ba4588b281..05a155b93dccc6ab31f640f366f50082e13b60d1 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;
         }
This page took 0.028773 seconds and 4 git commands to generate.