提交 b825b44c 编写于 作者: J Jay Freyensee 提交者: Sagi Grimberg

nvmet-rdma: +1 to *queue_size from hsqsize/hrqsize

The host will be sending sqsize 0-based hsqsize value,
the target need to be adjusted as well.
Signed-off-by: NJay Freyensee <james_p_freyensee@linux.intel.com>
Reviewed-by: NSagi Grimberg <sagi@grimberg.me>
Signed-off-by: NSagi Grimberg <sagi@grimberg.me>
上级 3256aaef
...@@ -1004,10 +1004,10 @@ nvmet_rdma_parse_cm_connect_req(struct rdma_conn_param *conn, ...@@ -1004,10 +1004,10 @@ nvmet_rdma_parse_cm_connect_req(struct rdma_conn_param *conn,
queue->host_qid = le16_to_cpu(req->qid); queue->host_qid = le16_to_cpu(req->qid);
/* /*
* req->hsqsize corresponds to our recv queue size * req->hsqsize corresponds to our recv queue size plus 1
* req->hrqsize corresponds to our send queue size * req->hrqsize corresponds to our send queue size
*/ */
queue->recv_queue_size = le16_to_cpu(req->hsqsize); queue->recv_queue_size = le16_to_cpu(req->hsqsize) + 1;
queue->send_queue_size = le16_to_cpu(req->hrqsize); queue->send_queue_size = le16_to_cpu(req->hrqsize);
if (!queue->host_qid && queue->recv_queue_size > NVMF_AQ_DEPTH) if (!queue->host_qid && queue->recv_queue_size > NVMF_AQ_DEPTH)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册