Blame 0004-rdma-silly-ipv6-bugfix.patch
|
|
298366 |
From 260790645e95891cb264c2d657648f43401ac915 Mon Sep 17 00:00:00 2001
|
|
|
298366 |
From: "Michael R. Hines" <mrhines@us.ibm.com>
|
|
|
298366 |
Date: Sun, 18 Aug 2013 22:27:08 -0400
|
|
|
298366 |
Subject: [PATCH] rdma: silly ipv6 bugfix
|
|
|
298366 |
|
|
|
298366 |
My bad - but it's very important for us to warn the user that
|
|
|
298366 |
IPv6 is broken on RoCE in linux right now, until linux releases
|
|
|
298366 |
a fixed version.
|
|
|
298366 |
|
|
|
298366 |
Signed-off-by: Michael R. Hines <mrhines@us.ibm.com>
|
|
|
298366 |
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
|
|
|
298366 |
(cherry picked from commit c89aa2f1851b08c3efa8a1070c0a6b9a36e1227f)
|
|
|
298366 |
|
|
|
298366 |
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
|
|
|
298366 |
---
|
|
|
298366 |
migration-rdma.c | 8 +++++---
|
|
|
298366 |
1 file changed, 5 insertions(+), 3 deletions(-)
|
|
|
298366 |
|
|
|
298366 |
diff --git a/migration-rdma.c b/migration-rdma.c
|
|
|
298366 |
index 3d1266f..f5e75d6 100644
|
|
|
298366 |
--- a/migration-rdma.c
|
|
|
298366 |
+++ b/migration-rdma.c
|
|
|
298366 |
@@ -920,9 +920,11 @@ static int qemu_rdma_resolve_host(RDMAContext *rdma, Error **errp)
|
|
|
298366 |
ret = rdma_resolve_addr(rdma->cm_id, NULL, e->ai_dst_addr,
|
|
|
298366 |
RDMA_RESOLVE_TIMEOUT_MS);
|
|
|
298366 |
if (!ret) {
|
|
|
298366 |
- ret = qemu_rdma_broken_ipv6_kernel(errp, rdma->cm_id->verbs);
|
|
|
298366 |
- if (ret) {
|
|
|
298366 |
- continue;
|
|
|
298366 |
+ if (e->ai_family == AF_INET6) {
|
|
|
298366 |
+ ret = qemu_rdma_broken_ipv6_kernel(errp, rdma->cm_id->verbs);
|
|
|
298366 |
+ if (ret) {
|
|
|
298366 |
+ continue;
|
|
|
298366 |
+ }
|
|
|
298366 |
}
|
|
|
298366 |
goto route;
|
|
|
298366 |
}
|