[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <zxwj5jupg7rlbtdrqloecw3ta4oybfguue5hrdlf2j3o35xusv@wp6kq4kujfli>
Date: Tue, 19 Dec 2023 16:15:01 +0100
From: Daniel Wagner <dwagner@...e.de>
To: Hannes Reinecke <hare@...e.de>
Cc: linux-nvme@...ts.infradead.org, linux-kernel@...r.kernel.org,
Christoph Hellwig <hch@....de>, Sagi Grimberg <sagi@...mberg.me>,
Keith Busch <kbusch@...nel.org>, James Smart <james.smart@...adcom.com>
Subject: Re: [PATCH v3 01/16] nvmet: report ioccsz and iorcsz for disc ctrl
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.
Powered by blists - more mailing lists