9ae3a8
From b00c5116a41f106737f011b4c803b7451941a732 Mon Sep 17 00:00:00 2001
9ae3a8
Message-Id: <b00c5116a41f106737f011b4c803b7451941a732.1387382496.git.minovotn@redhat.com>
9ae3a8
In-Reply-To: <c5386144fbf09f628148101bc674e2421cdd16e3.1387382496.git.minovotn@redhat.com>
9ae3a8
References: <c5386144fbf09f628148101bc674e2421cdd16e3.1387382496.git.minovotn@redhat.com>
9ae3a8
From: Nigel Croxon <ncroxon@redhat.com>
9ae3a8
Date: Thu, 14 Nov 2013 22:53:09 +0100
9ae3a8
Subject: [PATCH 33/46] rdma: silly ipv6 bugfix
9ae3a8
9ae3a8
RH-Author: Nigel Croxon <ncroxon@redhat.com>
9ae3a8
Message-id: <1384469598-13137-34-git-send-email-ncroxon@redhat.com>
9ae3a8
Patchwork-id: 55715
9ae3a8
O-Subject: [RHEL7.0 PATCH 33/42] rdma: silly ipv6 bugfix
9ae3a8
Bugzilla: 1011720
9ae3a8
RH-Acked-by: Orit Wasserman <owasserm@redhat.com>
9ae3a8
RH-Acked-by: Amit Shah <amit.shah@redhat.com>
9ae3a8
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
9ae3a8
Bugzilla: 1011720
9ae3a8
https://bugzilla.redhat.com/show_bug.cgi?id=1011720
9ae3a8
9ae3a8
>From commit ID:
9ae3a8
commit c89aa2f1851b08c3efa8a1070c0a6b9a36e1227f
9ae3a8
Author: Michael R. Hines <mrhines@us.ibm.com>
9ae3a8
Date:   Sun Aug 18 22:27:08 2013 -0400
9ae3a8
9ae3a8
    rdma: silly ipv6 bugfix
9ae3a8
9ae3a8
    My bad - but it's very important for us to warn the user that
9ae3a8
    IPv6 is broken on RoCE in linux right now, until linux releases
9ae3a8
    a fixed version.
9ae3a8
9ae3a8
    Signed-off-by: Michael R. Hines <mrhines@us.ibm.com>
9ae3a8
    Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
9ae3a8
---
9ae3a8
 migration-rdma.c |    8 +++++---
9ae3a8
 1 files changed, 5 insertions(+), 3 deletions(-)
9ae3a8
9ae3a8
Signed-off-by: Michal Novotny <minovotn@redhat.com>
9ae3a8
---
9ae3a8
 migration-rdma.c | 8 +++++---
9ae3a8
 1 file changed, 5 insertions(+), 3 deletions(-)
9ae3a8
9ae3a8
diff --git a/migration-rdma.c b/migration-rdma.c
9ae3a8
index ada488e..943496f 100644
9ae3a8
--- a/migration-rdma.c
9ae3a8
+++ b/migration-rdma.c
9ae3a8
@@ -920,9 +920,11 @@ static int qemu_rdma_resolve_host(RDMAContext *rdma, Error **errp)
9ae3a8
         ret = rdma_resolve_addr(rdma->cm_id, NULL, e->ai_dst_addr,
9ae3a8
                 RDMA_RESOLVE_TIMEOUT_MS);
9ae3a8
         if (!ret) {
9ae3a8
-            ret = qemu_rdma_broken_ipv6_kernel(errp, rdma->cm_id->verbs);
9ae3a8
-            if (ret) {
9ae3a8
-                continue;
9ae3a8
+            if (e->ai_family == AF_INET6) {
9ae3a8
+                ret = qemu_rdma_broken_ipv6_kernel(errp, rdma->cm_id->verbs);
9ae3a8
+                if (ret) {
9ae3a8
+                    continue;
9ae3a8
+                }
9ae3a8
             }
9ae3a8
             goto route;
9ae3a8
         }
9ae3a8
-- 
9ae3a8
1.7.11.7
9ae3a8