diff options
author | Isaku Yamahata <yamahata@private.email.ne.jp> | 2013-08-03 22:54:53 -0400 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-08-05 11:47:47 -0500 |
commit | 877726397f7e24d0c8a2b303a852769b5edd155c (patch) | |
tree | f617bb048ff1ba09abe913e8833c23a02c11578d /migration-rdma.c | |
parent | 1f22364bb5a756dfcbd15c2ae2bac18bbcef6190 (diff) | |
download | hqemu-877726397f7e24d0c8a2b303a852769b5edd155c.zip hqemu-877726397f7e24d0c8a2b303a852769b5edd155c.tar.gz |
rdma: use RDMA_WRID_READY
Reviewed-by: Michael R. Hines <mrhines@us.ibm.com>
Signed-off-by: Isaku Yamahata <yamahata@private.email.ne.jp>
Signed-off-by: Michael R. Hines <mrhines@us.ibm.com>
Message-id: 1375584894-9917-7-git-send-email-mrhines@linux.vnet.ibm.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'migration-rdma.c')
-rw-r--r-- | migration-rdma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/migration-rdma.c b/migration-rdma.c index 5b03e95..83c9a0b 100644 --- a/migration-rdma.c +++ b/migration-rdma.c @@ -2223,7 +2223,7 @@ static int qemu_rdma_connect(RDMAContext *rdma, Error **errp) rdma_ack_cm_event(cm_event); - ret = qemu_rdma_post_recv_control(rdma, 0); + ret = qemu_rdma_post_recv_control(rdma, RDMA_WRID_READY); if (ret) { ERROR(errp, "posting second control recv!"); goto err_rdma_source_connect; @@ -2735,7 +2735,7 @@ static int qemu_rdma_accept(RDMAContext *rdma) rdma_ack_cm_event(cm_event); - ret = qemu_rdma_post_recv_control(rdma, 0); + ret = qemu_rdma_post_recv_control(rdma, RDMA_WRID_READY); if (ret) { fprintf(stderr, "rdma migration: error posting second control recv!\n"); goto err_rdma_dest_wait; |