summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cpp/src/qpid/sys/rdma/rdma_wrap.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/src/qpid/sys/rdma/rdma_wrap.cpp b/cpp/src/qpid/sys/rdma/rdma_wrap.cpp
index 31db390fa4..8d5545baa8 100644
--- a/cpp/src/qpid/sys/rdma/rdma_wrap.cpp
+++ b/cpp/src/qpid/sys/rdma/rdma_wrap.cpp
@@ -119,13 +119,16 @@ namespace Rdma {
scq->cq_context = this;
rcq->cq_context = this;
+ ::ibv_device_attr dev_attr;
+ CHECK(::ibv_query_device(i->verbs, &dev_attr));
+
::ibv_qp_init_attr qp_attr = {};
// TODO: make a default struct for this
qp_attr.cap.max_send_wr = DEFAULT_WR_ENTRIES;
- qp_attr.cap.max_send_sge = 4;
+ qp_attr.cap.max_send_sge = 1;
qp_attr.cap.max_recv_wr = DEFAULT_WR_ENTRIES;
- qp_attr.cap.max_recv_sge = 4;
+ qp_attr.cap.max_recv_sge = 1;
qp_attr.send_cq = scq.get();
qp_attr.recv_cq = rcq.get();