Received: from eggs.gnu.org ([2001:4830:134:3::10]:45016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGRtT-00016K-9o for qemu-devel@nongnu.org; Mon, 02 Sep 2013 07:02:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGRtO-0005M2-1l for qemu-devel@nongnu.org; Mon, 02 Sep 2013 07:02:03 -0400 From: Michael Tokarev Date: Mon, 2 Sep 2013 15:01:23 +0400 Message-Id: <1378119695-14568-4-git-send-email-mjt@msgid.tls.msk.ru> In-Reply-To: <1378119695-14568-1-git-send-email-mjt@msgid.tls.msk.ru> References: <1378119695-14568-1-git-send-email-mjt@msgid.tls.msk.ru> Subject: [Qemu-devel] [PULL 03/15] rdma: silly ipv6 bugfix List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: aliguori@us.ibm.com Cc: qemu-trivial@nongnu.org, Michael Tokarev , "Michael R. Hines" , qemu-devel@nongnu.org From: "Michael R. Hines" 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 Signed-off-by: Michael Tokarev --- migration-rdma.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/migration-rdma.c b/migration-rdma.c index f540366..05a155b 100644 --- a/migration-rdma.c +++ b/migration-rdma.c @@ -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; } -- 1.7.10.4