From: Israel Rukshin Date: Tue, 19 May 2020 14:06:00 +0000 (+0300) Subject: nvme: add Metadata Capabilities enumerations X-Git-Tag: for-5.8/drivers-2020-06-01~5^2~9 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=39481fbd14ee272edd419d73a98bc637e2a3fd35;p=linux-block.git nvme: add Metadata Capabilities enumerations The enumerations will be used to expose the namespace metadata format by the target. Suggested-by: Christoph Hellwig Signed-off-by: Israel Rukshin Signed-off-by: Max Gurtovoy Reviewed-by: James Smart Reviewed-by: Martin K. Petersen Signed-off-by: Christoph Hellwig --- diff --git a/include/linux/nvme.h b/include/linux/nvme.h index e2993e6a9d7c..5ce51ab4c50e 100644 --- a/include/linux/nvme.h +++ b/include/linux/nvme.h @@ -420,6 +420,12 @@ enum { NVME_NS_DPS_PI_TYPE3 = 3, }; +/* Identify Namespace Metadata Capabilities (MC): */ +enum { + NVME_MC_EXTENDED_LBA = (1 << 0), + NVME_MC_METADATA_PTR = (1 << 1), +}; + struct nvme_ns_id_desc { __u8 nidt; __u8 nidl;