Lines Matching refs:qp_attr
372 struct ib_qp_init_attr qp_attr; in svc_rdma_accept() local
443 memset(&qp_attr, 0, sizeof qp_attr); in svc_rdma_accept()
444 qp_attr.event_handler = qp_event_handler; in svc_rdma_accept()
445 qp_attr.qp_context = &newxprt->sc_xprt; in svc_rdma_accept()
446 qp_attr.port_num = newxprt->sc_port_num; in svc_rdma_accept()
447 qp_attr.cap.max_rdma_ctxs = ctxts; in svc_rdma_accept()
448 qp_attr.cap.max_send_wr = newxprt->sc_sq_depth - ctxts; in svc_rdma_accept()
449 qp_attr.cap.max_recv_wr = rq_depth; in svc_rdma_accept()
450 qp_attr.cap.max_send_sge = newxprt->sc_max_send_sges; in svc_rdma_accept()
451 qp_attr.cap.max_recv_sge = 1; in svc_rdma_accept()
452 qp_attr.sq_sig_type = IB_SIGNAL_REQ_WR; in svc_rdma_accept()
453 qp_attr.qp_type = IB_QPT_RC; in svc_rdma_accept()
454 qp_attr.send_cq = newxprt->sc_sq_cq; in svc_rdma_accept()
455 qp_attr.recv_cq = newxprt->sc_rq_cq; in svc_rdma_accept()
459 qp_attr.cap.max_send_wr, qp_attr.cap.max_recv_wr); in svc_rdma_accept()
461 qp_attr.cap.max_send_sge, qp_attr.cap.max_recv_sge); in svc_rdma_accept()
463 ret = rdma_create_qp(newxprt->sc_cm_id, newxprt->sc_pd, &qp_attr); in svc_rdma_accept()