summaryrefslogtreecommitdiffstats
path: root/src/kiro-rdma.h
diff options
context:
space:
mode:
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;