From: Michael R. Hines Date: Mon, 19 Aug 2013 02:27:08 +0000 (-0400) Subject: rdma: silly ipv6 bugfix X-Git-Tag: v1.7.0-rc0~137^2~12 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c89aa2f1851b08c3efa8a1070c0a6b9a36e1227f;p=users%2Fdwmw2%2Fqemu.git rdma: silly ipv6 bugfix 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 --- diff --git a/migration-rdma.c b/migration-rdma.c index f540366944..05a155b93d 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; }