[PATCH RFC] nvmet-rdma: +1 to *queue_size from hsqsize/hrqsize

Verkamp, Daniel daniel.verkamp at intel.com
Mon Aug 8 09:09:50 PDT 2016


Hi Jay,

On Fri, 2016-08-05 at 20:00 -0700, Jay Freyensee wrote:
> -	queue->recv_queue_size = le16_to_cpu(req->hsqsize);
> -	queue->send_queue_size = le16_to_cpu(req->hrqsize);
> +	queue->recv_queue_size = le16_to_cpu(req->hsqsize)+1;
> +	queue->send_queue_size = le16_to_cpu(req->hrqsize)+1;

I think the +1 needs to be inside the le16_to_cpu() in both cases.

-- Daniel


More information about the Linux-nvme mailing list