summaryrefslogtreecommitdiffstats
path: root/src/kiro-rdma.h
diff options
context:
space:
mode:
authorTimo Dritschler <timo.dritschler@kit.edu>2015-01-15 14:48:08 +0100
committerTimo Dritschler <timo.dritschler@kit.edu>2015-01-30 18:19:37 +0100
commit5ad42a8bd4ec754b9c33f9c0b22dceb0e812c4a5 (patch)
treeae15468bd5346b4402d84cbaf0cb6657c0d17bd5 /src/kiro-rdma.h
parent6a931a1185aa8170636b8f55c38ad91af6f897f6 (diff)
downloadkiro-5ad42a8bd4ec754b9c33f9c0b22dceb0e812c4a5.tar.gz
kiro-5ad42a8bd4ec754b9c33f9c0b22dceb0e812c4a5.tar.bz2
kiro-5ad42a8bd4ec754b9c33f9c0b22dceb0e812c4a5.tar.xz
kiro-5ad42a8bd4ec754b9c33f9c0b22dceb0e812c4a5.zip
Fixed race conditions in kiro_server_realloc
KIRO client now reacts to server realloc
Diffstat (limited to 'src/kiro-rdma.h')
-rw-r--r--src/kiro-rdma.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kiro-rdma.h b/src/kiro-rdma.h
index 6baa017..c17e044 100644
--- a/src/kiro-rdma.h
+++ b/src/kiro-rdma.h
@@ -81,9 +81,9 @@ kiro_attach_qp (struct rdma_cm_id *id)
id->pd = ibv_alloc_pd (id->verbs);
id->send_cq_channel = ibv_create_comp_channel (id->verbs);
- id->recv_cq_channel = id->send_cq_channel; //we use one shared completion channel
+ id->recv_cq_channel = ibv_create_comp_channel (id->verbs);
id->send_cq = ibv_create_cq (id->verbs, 1, id, id->send_cq_channel, 0);
- id->recv_cq = id->send_cq; //we use one shared completion queue
+ id->recv_cq = ibv_create_cq (id->verbs, 1, id, id->recv_cq_channel, 0);
struct ibv_qp_init_attr qp_attr;
memset (&qp_attr, 0, sizeof (struct ibv_qp_init_attr));
qp_attr.qp_context = (void *) (uintptr_t) id;