Skip to content

Commit

Permalink
Add support for the OAQD ID controller field
Browse files Browse the repository at this point in the history
Signed-off-by: Brandon Paupore <[email protected]>
  • Loading branch information
bpaupore-wdc committed Sep 8, 2023
1 parent 5081b43 commit 1fa0a2b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 8 additions & 2 deletions doc/rst/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,8 @@ power scale value
__le32 mnan;
__u8 maxdna[16];
__le32 maxcna;
__u8 rsvd564[204];
__le32 oaqd;
__u8 rsvd568[200];
char subnqn[NVME_NQN_LENGTH];
__u8 rsvd1024[768];
__le32 ioccsz;
Expand Down Expand Up @@ -976,7 +977,12 @@ power scale value
maximum number of namespaces that are allowed to be attached to
this I/O controller.

``rsvd564``
``oaqd``
Optimal Aggregated Queue Depth indicates the recommended maximum
total number of outstanding I/O commands across all I/O queues on the
controller for optimal operation.

``rsvd568``
Reserved

``subnqn``
Expand Down
8 changes: 6 additions & 2 deletions src/nvme/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,10 @@ struct nvme_id_psd {
* @maxcna: Maximum I/O Controller Namespace Attachments indicates the
* maximum number of namespaces that are allowed to be attached to
* this I/O controller.
* @rsvd564: Reserved
* @oaqd: Optimal Aggregated Queue Depth indicates the recommended maximum
* total number of outstanding I/O commands across all I/O queues
* on the controller for optimal operation.
* @rsvd568: Reserved
* @subnqn: NVM Subsystem NVMe Qualified Name, UTF-8 null terminated string
* @rsvd1024: Reserved
* @ioccsz: I/O Queue Command Capsule Supported Size, defines the maximum
Expand Down Expand Up @@ -1035,7 +1038,8 @@ struct nvme_id_ctrl {
__le32 mnan;
__u8 maxdna[16];
__le32 maxcna;
__u8 rsvd564[204];
__le32 oaqd;
__u8 rsvd568[200];
char subnqn[NVME_NQN_LENGTH];
__u8 rsvd1024[768];

Expand Down

0 comments on commit 1fa0a2b

Please sign in to comment.