ioccsz and iorcsz check failing

Daniel Wagner dwagner at suse.de
Fri Dec 15 06:48:04 PST 2023


Hi,

Since commit 2fcd3ab39826 ("nvme-fabrics: check ioccsz and iorcsz") my
testing fails with these checks when trying to connect a remote target
(Linux nvmet) via nvme-tcp. Looking at the TCP frame I see these values
are 0 on the wire.

When running blktests with nvme-tcp via the loop back device all is
good.

When running blktest with nvme-fc via the loop back device the first
check fails because ioccsz is 0. I've added a bunch of debug prints:

  nvme nvme0: I/O queue command capsule supported size 0 < 4

  nvmet: nvmet_execute_identify:687 cns 1
  nvmet: nvmet_execute_identify_ctrl:469 ioccsz 4 iorcsz 1
  nvmet: nvmet_copy_to_sgl:98 buf ffff8881348a6000 len 4096

So this part looks good to my eyes. Not sure where the problem could be.
In case someone spots the problem as I can't really make sense of it at
the moment.

Thanks,
Daniel



More information about the Linux-nvme mailing list