Skip to contentSkip to conversation

rdma: silly ipv6 bugfix

PATCH New [email protected] 1 participant 1 message Aug 12, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rdma: silly ipv6 bugfix

From: "Michael R. Hines" <[email protected]>

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.

---
 migration-rdma.c |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
migration-rdma.c +5 -3
index 3d1266f..f5e75d6 100644
@@ -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;
         }
Signature · 1 line
1.7.10.4