lkml.org 
[lkml]   [2023]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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.

\
 
 \ /
  Last update: 2023-12-19 16:15    [W:0.804 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site