Lines Matching refs:qp_attr
1261 struct ib_qp_init_attr qp_attr = { }; in nvmet_rdma_create_queue_ib() local
1279 qp_attr.qp_context = queue; in nvmet_rdma_create_queue_ib()
1280 qp_attr.event_handler = nvmet_rdma_qp_event; in nvmet_rdma_create_queue_ib()
1281 qp_attr.send_cq = queue->cq; in nvmet_rdma_create_queue_ib()
1282 qp_attr.recv_cq = queue->cq; in nvmet_rdma_create_queue_ib()
1283 qp_attr.sq_sig_type = IB_SIGNAL_REQ_WR; in nvmet_rdma_create_queue_ib()
1284 qp_attr.qp_type = IB_QPT_RC; in nvmet_rdma_create_queue_ib()
1286 qp_attr.cap.max_send_wr = queue->send_queue_size + 1; in nvmet_rdma_create_queue_ib()
1289 qp_attr.cap.max_rdma_ctxs = queue->send_queue_size * factor; in nvmet_rdma_create_queue_ib()
1290 qp_attr.cap.max_send_sge = max(ndev->device->attrs.max_sge_rd, in nvmet_rdma_create_queue_ib()
1294 qp_attr.srq = queue->nsrq->srq; in nvmet_rdma_create_queue_ib()
1297 qp_attr.cap.max_recv_wr = 1 + queue->recv_queue_size; in nvmet_rdma_create_queue_ib()
1298 qp_attr.cap.max_recv_sge = 1 + ndev->inline_page_count; in nvmet_rdma_create_queue_ib()
1302 qp_attr.create_flags |= IB_QP_CREATE_INTEGRITY_EN; in nvmet_rdma_create_queue_ib()
1304 ret = rdma_create_qp(queue->cm_id, ndev->pd, &qp_attr); in nvmet_rdma_create_queue_ib()
1311 atomic_set(&queue->sq_wr_avail, qp_attr.cap.max_send_wr); in nvmet_rdma_create_queue_ib()
1314 __func__, queue->cq->cqe, qp_attr.cap.max_send_sge, in nvmet_rdma_create_queue_ib()
1315 qp_attr.cap.max_send_wr, queue->cm_id); in nvmet_rdma_create_queue_ib()