[PATCH v3 01/16] nvmet: report ioccsz and iorcsz for disc ctrl
Daniel Wagner
dwagner at suse.de
Tue Dec 19 07:15:01 PST 2023
On Tue, Dec 19, 2023 at 08:24:58AM +0100, Hannes Reinecke wrote:
> > + * Disable in-capsule data for Metadata capable controllers.
> > + */
> > + cmd_capsule_size = sizeof(struct nvme_command);
> > + if (!ctrl->pi_support)
> > + cmd_capsule_size += req->port->inline_data_size;
> > + id->ioccsz = cpu_to_le32(cmd_capsule_size / 16);
>
> Why the division by 16?
The unit size is 16 bytes:
I/O Queue Command Capsule Supported Size (IOCCSZ): This field defines the
maximum I/O command capsule size in 16 byte units.
More information about the Linux-nvme
mailing list