From: Alistair Francis Date: Fri, 20 Mar 2026 00:20:44 +0000 (+1000) Subject: nvme: Add the DHCHAP maximum HD IDs X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=09e8f0f93491c6be867f32d4edc0b16fb5da785e;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Yunje Shin Reviewed-by: Hannes Reinecke Reviewed-by: Chris Leech Signed-off-by: Alistair Francis Signed-off-by: Keith Busch --- diff --git a/include/linux/nvme.h b/include/linux/nvme.h index 2b66a86d7da65..041f30931a908 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 */