rdma.c (c1144d29f405ce1f4e6ede6482beb3d0d09750c6) rdma.c (33023fb85a42b53bf778bc025f9667b582282be4)
1/*
2 * NVMe over Fabrics RDMA target.
3 * Copyright (c) 2015-2016 HGST, a Western Digital Company.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *

--- 860 unchanged lines hidden (view full) ---

869 qp_attr.send_cq = queue->cq;
870 qp_attr.recv_cq = queue->cq;
871 qp_attr.sq_sig_type = IB_SIGNAL_REQ_WR;
872 qp_attr.qp_type = IB_QPT_RC;
873 /* +1 for drain */
874 qp_attr.cap.max_send_wr = queue->send_queue_size + 1;
875 qp_attr.cap.max_rdma_ctxs = queue->send_queue_size;
876 qp_attr.cap.max_send_sge = max(ndev->device->attrs.max_sge_rd,
1/*
2 * NVMe over Fabrics RDMA target.
3 * Copyright (c) 2015-2016 HGST, a Western Digital Company.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *

--- 860 unchanged lines hidden (view full) ---

869 qp_attr.send_cq = queue->cq;
870 qp_attr.recv_cq = queue->cq;
871 qp_attr.sq_sig_type = IB_SIGNAL_REQ_WR;
872 qp_attr.qp_type = IB_QPT_RC;
873 /* +1 for drain */
874 qp_attr.cap.max_send_wr = queue->send_queue_size + 1;
875 qp_attr.cap.max_rdma_ctxs = queue->send_queue_size;
876 qp_attr.cap.max_send_sge = max(ndev->device->attrs.max_sge_rd,
877 ndev->device->attrs.max_sge);
877 ndev->device->attrs.max_send_sge);
878
879 if (ndev->srq) {
880 qp_attr.srq = ndev->srq;
881 } else {
882 /* +1 for drain */
883 qp_attr.cap.max_recv_wr = 1 + queue->recv_queue_size;
884 qp_attr.cap.max_recv_sge = 2;
885 }

--- 657 unchanged lines hidden ---
878
879 if (ndev->srq) {
880 qp_attr.srq = ndev->srq;
881 } else {
882 /* +1 for drain */
883 qp_attr.cap.max_recv_wr = 1 + queue->recv_queue_size;
884 qp_attr.cap.max_recv_sge = 2;
885 }

--- 657 unchanged lines hidden ---