nvme/spec: add zone append specific PIREMAP define
PIREMAP is defined as bit 25 in Command Dword12 for the zone append command. Bit 25 in Command Dword12 is still reserved for regular reads/writes. PIREMAP determines the contents of the reference tag written to the media. If cleared to 0, then the controller writes the reference tag per the NVMe Base specification without modification. If set to 1, Reference Tag[0] = ILBRT + (ALBA - ZSLBA). Media Reference Tag[n+1] = Media Reference Tag[n] + 1. As defined in Zoned Namespaces Command Set Specification, section 4.5.1. Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com> Change-Id: I984ca00146baf6af61208e3598c833f1ec4708bb Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6012 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
628f9adb39
commit
ffd18d43e3
@ -3296,6 +3296,8 @@ SPDK_STATIC_ASSERT(sizeof(struct spdk_nvme_ns_streams_status) == 131072, "Incorr
|
||||
#define SPDK_NVME_IO_FLAGS_FUSE_MASK (SPDK_NVME_CMD_FUSE_MASK << 0)
|
||||
/** Enable Directive type as streams */
|
||||
#define SPDK_NVME_IO_FLAGS_STREAMS_DIRECTIVE (1U << 20)
|
||||
/** Zone append specific, determines the contents of the reference tag written to the media */
|
||||
#define SPDK_NVME_IO_FLAGS_ZONE_APPEND_PIREMAP (1U << 25)
|
||||
/** Enable protection information checking of the Logical Block Reference Tag field */
|
||||
#define SPDK_NVME_IO_FLAGS_PRCHK_REFTAG (1U << 26)
|
||||
/** Enable protection information checking of the Application Tag field */
|
||||
|
Loading…
Reference in New Issue
Block a user