summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2026-03-20 03:20:44 +0300
committerKeith Busch <kbusch@kernel.org>2026-03-27 17:35:05 +0300
commit09e8f0f93491c6be867f32d4edc0b16fb5da785e (patch)
treeb8663a1720065bd57fb1a4f6ad86f7fa243adf40 /include/linux
parenta8eebf9699d69987cc49cec4e4fdb4111ab32423 (diff)
downloadlinux-09e8f0f93491c6be867f32d4edc0b16fb5da785e.tar.xz
nvme: Add the DHCHAP maximum HD IDs
In preperation for using DHCHAP length in upcoming host and target patches let's add the hash and diffie-hellman ID length macros. Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Yunje Shin <ioerts@kookmin.ac.kr> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Chris Leech <cleech@redhat.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nvme.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h
index 2b66a86d7da6..041f30931a90 100644
--- a/include/linux/nvme.h
+++ b/include/linux/nvme.h
@@ -2348,4 +2348,8 @@ enum nvme_pr_change_ptpl {
#define NVME_PR_IGNORE_KEY (1 << 3)
+/* Section 8.3.4.5.2 of the NVMe 2.1 */
+#define NVME_AUTH_DHCHAP_MAX_HASH_IDS 30
+#define NVME_AUTH_DHCHAP_MAX_DH_IDS 30
+
#endif /* _LINUX_NVME_H */