On 09/28/2016 03:32 PM, Walker, Benjamin wrote:
On Wed, 2016-09-28 at 22:11 +0000, Alex Bowden wrote:
> It seems SQSIZE in linux-nvmf is by default set to 128 and seems to be 127 in
> the NVMf code, but I think the RDMA driver does a +1 to it? This causes SPDK
> to not accept the cmd.
You are using an old version of the kernel initiator. We reported this bug to
developers and it is now fixed in the latest version (4.8). SPDK was doing this
but the kernel was not treating the value as 0's based.
> I suggest either changing this to ">" instead of ">=" or
> nvmf.conf.in MaxQueueDepth size to 129 by default.
> Here's the error msg:
> ***ERROR*** Invalid SQSIZE 128 (min 1, max 127)
Specifically, the fix is in these Linux kernel commits:
nvme-rdma: fix sqsize/hsqsize per spec
fabrics: define admin sqsize min default, per spec
The buggy version of the SQSIZE code was never in a released kernel
version, only Linux 4.8-rc4. The final Linux 4.8 release (which is the
first kernel release with NVMe over Fabrics support) will contain the fix.