Skip to content

Commit b4cb6a0

Browse files
sc108-leedwsuse
authored andcommitted
nvme: Add nulbaf(Number of Unique Capability LBA Formats) field on nvmd_id_ns
Add explaination for mssrl, mcl, src Based on spec NVMe - TP 4095 Namespace Capability Reporting 2021.06.28 - Ratified
1 parent 4203a37 commit b4cb6a0

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

src/nvme/types.h

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1651,10 +1651,20 @@ enum nvme_lbaf_rp {
16511651
* @nows: Namespace Optimal Write Size indicates the size in logical blocks
16521652
* for optimal write performance for this namespace. This is a 0's
16531653
* based value.
1654-
* @mssrl:
1655-
* @mcl:
1656-
* @msrc:
1654+
* @mssrl: Maximum Single Source Range Length indicates the maximum number
1655+
* of logical blocks that may be specified in each valid Source Range
1656+
* field of a Copy command.
1657+
* @mcl: Maximum Copy Length indicates the maximum number of logical
1658+
* blocks that may be specified in a Copy command.
1659+
* @msrc: Maximum Source Range Count indicates the maximum number of Source
1660+
* Range entries that may be used to specify source data in a Copy
1661+
* command. This is a 0’s based value.
16571662
* @rsvd81: Reserved
1663+
* @nulbaf: Number of Unique Capability LBA Formats defines the number of
1664+
* supported user data size and metadata size combinations supported
1665+
* by the namespace that may not share the same capabilities. LBA
1666+
* formats shall be allocated in order and packed sequentially.
1667+
* @rsvd83: Reserved
16581668
* @anagrpid: ANA Group Identifier indicates the ANA Group Identifier of the
16591669
* ANA group of which the namespace is a member.
16601670
* @rsvd96: Reserved
@@ -1706,7 +1716,9 @@ struct nvme_id_ns {
17061716
__le16 mssrl;
17071717
__le32 mcl;
17081718
__u8 msrc;
1709-
__u8 rsvd81[11];
1719+
__u8 rsvd81;
1720+
__u8 nulbaf;
1721+
__u8 rsvd83[9];
17101722
__le32 anagrpid;
17111723
__u8 rsvd96[3];
17121724
__u8 nsattr;

0 commit comments

Comments
 (0)