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 <mrhines@us.ibm.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
4c293dc6e4
commit
c89aa2f185
|
@ -920,10 +920,12 @@ static int qemu_rdma_resolve_host(RDMAContext *rdma, Error **errp)
|
||||||
ret = rdma_resolve_addr(rdma->cm_id, NULL, e->ai_dst_addr,
|
ret = rdma_resolve_addr(rdma->cm_id, NULL, e->ai_dst_addr,
|
||||||
RDMA_RESOLVE_TIMEOUT_MS);
|
RDMA_RESOLVE_TIMEOUT_MS);
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
|
if (e->ai_family == AF_INET6) {
|
||||||
ret = qemu_rdma_broken_ipv6_kernel(errp, rdma->cm_id->verbs);
|
ret = qemu_rdma_broken_ipv6_kernel(errp, rdma->cm_id->verbs);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
goto route;
|
goto route;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue